Project 6 of Openclassrooms php symfony training courses
The aim of the project is to create a community web site on snowboard tricks. Users can create and edit there own tricks and every verified user can use the comment section
- Clone the repository with git clone
git clone https://github.com/iBast/BastienMunck_P6_20210707.git
- Install the dependencies with
composer install
- create a .env file or set your hosting environnement with :
APP_ENV=prod
APP_SECRET= $$ your secret $$
MAILER_DSN=smtp://user:password@host:port
DATABASE_URL="mysql://user:password@host/db?serverVersion=X.X.XX"
- install the database
-
you can use the sql file in the repository
-
or you can install the db with doctrine
if the database does not exist, create it with the following command in the project directory
-
php bin/console doctrine:database:create
then
php bin/console doctrine:migration:migrate
- Install fixtures to have first contents and the admin account
php bin/console doctrine:fixtures:load