Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

becodeorg/Learning2gether-platform

Repository files navigation

Learning2Gether

This repository contains the e-learning platform "Learning2Gether":

https://platform.learning2gether.org/

This platform is built on the open source Symfony Framework, v3.

This readme contains installation instructions and documentation links.

Contributors

This project was created during our training at BeCode. The main contributors were, in no specific order:

  • @Anastasiyavyp Anastasiya Vyprytska
  • @bona-kim Bona Kim
  • @janvdv96 Jan Van de Velde
  • @joostvannieu Joost Vannieuwenhuyse
  • @JosephLindzius Joseph Lindzius
  • @Nicnicsai Nicole Reyes Guttmann
  • @Timmeahj Tim Broos

We received technical support from our coach @grubolsch (Koen Eelen).

How to install

The vhost for this project is more complex than a simple PHP script, and is based on the Symfony Vhost style. This configuration assumes that your site will be called l2g.local and use the directory /var/www/l2g-platform/. If you use something different you will have to adapt the vhost configuration.

Please be aware that in this project the root directory for PHP will be public/. All your public available resources should be available from this directory (eg.: public/css).

<VirtualHost *:80>
	ServerName l2g.local

	DocumentRoot /var/www/l2g-platform/public
        DirectoryIndex /index.php

        <Directory /var/www/l2g-platform/public>
        	AllowOverride All
        	Order Allow,Deny
       		Allow from All

		FallbackResource /index.php
	 </Directory>

	ErrorLog ${APACHE_LOG_DIR}/error-l2g.log
	CustomLog ${APACHE_LOG_DIR}/access-l2g.log combined
</VirtualHost>

Installing the project

After cloning this repo, you have to run composer install inside the root directory. You might need to install Composer to do this.

Creating the database

Inside the .env file you can change the DATABASE_URL parameter with your database configuration. Make sure to never commit this file!

Installing the database.

Make sure you create a new database l2g.

The run the following command in the project root: php bin/console doctrine:migrations:migrate

Documentation

Security

It is easy to prevent pages to be accessible only for logged in user or partners.

If you want to protect a page you need to start the route with a certain prefix:

  • portal/ (only for logged in users)
  • partner/ (only for partners)

About

The e-learning platform of Learning2Gether

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published