Skip to content

Commit 3f92a57

Browse files
committed
#152 Updating readme with database commands
1 parent 7d75c88 commit 3f92a57

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ From the `api` folder run the following to create `openapi.yaml` in the `./docs/
7373
docker-compose exec api bash -c "bin/console api:openapi:export --yaml" > ./docs/generated/openapi.yaml
7474
```
7575

76+
## Install database and data
77+
1. Run the migrations
78+
```bash
79+
docker-compose exec api bash -c 'bin/console doctrine:migrations:migrate'
80+
```
81+
82+
2. Run the data fixtures
83+
```bash
84+
docker-compose exec api bash -c 'bin/console doctrine:fixtures:load'
85+
```
7686
## Accessing the projects
7787

7888
- The API can be reached at [http://api.codequiz.local/api/v1](http://api.codequiz.local/api/v1)

0 commit comments

Comments
 (0)