From b5c83c4eb53079b6c0df7f657dd062643a5397d2 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Sun, 13 Sep 2020 17:53:31 +0200 Subject: [PATCH] docs: mention seeding in Development Setup (#401) --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d739dded0a..e31b6fa435 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,8 @@ The server will automatically restart anytime you save a `.ts` or `.js` file wit You can run any command within the container by prefixing it with `docker-compose exec app`, e.g. `docker-compose exec app npm install express` +Next, [seed the DB](#seeding-the-db). + #### Natively running node in Windows/MacOS/Linux (no docker) DISCLAIMER: This is a more hands on approach. @@ -115,7 +117,11 @@ MAKE SURE TO SET `IS_DOCKER=` in `.env` to blank npm run dev ``` -## Additional DB docs can be found in server/docs/README.md +## Seeding the DB + +Initially the DB will be empty. To seed it with sample data, run `yarn db:reset`. + +Additional DB docs can be found in [the contributing readme](CONTRIBUTING.md#database). ## Testing Run tests