P5-7626 - Development fixes and clarifications

This commit is contained in:
Anders Gustafsson
2021-08-12 10:51:57 +02:00
parent d17df41d86
commit 38cfa4d05a
4 changed files with 16 additions and 11 deletions
+11 -1
View File
@@ -3,17 +3,27 @@
Apollo graphql api server for Photowall
## Run it locally
Create an .env file (see .env.example for what to set).
### Development
Run
```
$ npm install
$ docker compose build
$ docker compose up
```
Then head over to [The playground GUI](https://localhost:4000) in the browser
See context function of src/index.ts for Authentication options for development.
### Run prod-like container locally
Run
```
$ docker compose -f docker-compose-prodlike.yml build
$ docker compose -f docker-compose-prodlike.yml up
```
## Run tests
Scripts will create the insert sql files for a randomized fake data postgres database. This database is based of the actual db in photowall project.