Before
February 13, 2023 ยท View on GitHub
Getting started
Before
- make sure you have installed docker
- make sure you have installed symfony cli
- make sure you have installed composer
put .env inside ./back folder (ask to Fantin to get it)
Run the app
Use makefile
First step, up containers :
make up
Second step, install dependencies for backend :
make backend-install
Third step, init jwt keys :
make init-jwt-keys
Fourth step, update database :
make schema-update
Fifth step, load fixtures :
make fixtures
Then run backend :
make start
go to http://localhost:8000/api for API Platform, http://localhost:3000 for VueJS app and http://localhost:8081 for adminer to manage your database.
For next time, you can use this command :
make start
You get 3 users for test : admin@gmail.com / ROLE_ADMIN / password : password user@gmail.com / ROLE_USER / password : password notverified@gmail.com / ROLE_USER / password : password (not verified by confirmation email)
migrations
php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate --no-interaction dazd