-
Notifications
You must be signed in to change notification settings - Fork 4
API
Peter Fisher edited this page Oct 2, 2022
·
5 revisions
- Docker
- Docker Compose
- Clone the repository
git clone git@github.com:howToCodeWell/code-quiz.git- Change directory to the
api
cd api- Run the containers
docker-compose up- Install database migrations
docker-compose exec api bin/console doctrine:migration:migrate- Load data fixtures
docker-compose exec api bin/console doctrine:fixtures:load- Add the following entry to the
/etc/hosts
127.0.0.1 codequiz.localMake a HTTP request to the API
From the api folder run the following to create openapi.yaml in the /docs/generated folder. This is ignored from the code base
docker-compose exec api bash -c "bin/console api:openapi:export --yaml" > ../docs/generated/openapi.yaml