- copy repository
git clone https://github.com/esauvage1978/oc_project6_snowtricks.git
composer install
- Copy et rename
.env.local
to.env
and configure BDD connect on.env
file and dev environnement (APP_ENV=dev) - Create database
php bin/console doctrine:database:create
- Create sql file
php bin/console make:migration
- Migrate table on database
php bin/console doctrine:migrations:migrate
- (for test) load fixtures into the database
php bin/console doctrine:fixtures:load
- configure the producion environnement in
.env
file (APP_ENV=prod) - Account fixtures:
- Role : Admin
- username : manu
- Pass : u12345678
- Role : Gestionnaire
- username : pauline
- Pass : u12345678
- Role : User
- Email : paul
- Pass : u12345678
- Role : Admin