Change README.md db commands for docker

This commit is contained in:
Wolfgang Huß 2021-11-01 10:38:48 +01:00 committed by GitHub
parent 8389e3d735
commit f1d892facb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,18 +110,19 @@ $ docker-compose -f docker-compose.yml up
This will start all required Docker containers. This will start all required Docker containers.
Make sure your database is running on `http://localhost:7474/browser/`. Make sure your database is running on `http://localhost:7474/browser/`.
Prepare database once before you start: Prepare database once before you start by running the following command in a second terminal:
```bash ```bash
# in folder backend/ # in main folder while docker-compose is up
yarn run db:migrate init $ docker-compose exec backend yarn run db:migrate init
``` ```
Then clear and seed database: Then clear and seed database by running the following command as well in the second terminal:
```bash ```bash
# in folder backend/ # in main folder while docker-compose is up
$ yarn run db:reset && db:seed $ docker-compose exec backend yarn run db:reset
$ docker-compose exec backend yarn run db:seed
``` ```
For a closer description see [backend README.md](./backend/README.md). For a closer description see [backend README.md](./backend/README.md).