Skip to content
Peter Fisher edited this page Oct 2, 2022 · 5 revisions

System Requirements

  • Docker
  • Docker Compose

Install Guide

  1. Clone the repository
git clone git@github.com:howToCodeWell/code-quiz.git
  1. Change directory to the api
cd api
  1. Run the containers
docker-compose up
  1. Install database migrations
docker-compose exec api bin/console doctrine:migration:migrate
  1. Load data fixtures
docker-compose exec api bin/console doctrine:fixtures:load
  1. Add the following entry to the /etc/hosts
127.0.0.1 codequiz.local

Make a HTTP request to the API

http://codequiz.local/api/v1

Generating the OpenAPI specification

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
Clone this wiki locally