From 5689f8f125cd4c6fc5c75a5f9d6b19f083fd3e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20G=C3=B3rny?= Date: Wed, 26 Aug 2020 09:28:32 +0200 Subject: [PATCH 1/2] update setup instructions --- .env.example | 2 +- README.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 51129d1..697e388 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ NODE_ENV=development NODE_PORT=3001 NODE_HOST=localhost -HOST_ADDRESS=localhost +HOST_ADDRESS=http://localhost:3001 DB_DIALECT=postgres DB_HOST=localhost diff --git a/README.md b/README.md index 0d17da7..bd7fd6b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ following next steps: 1. Navigate to the root of the project 2. Run `yarn` to install dependencies -3. Setup the postgres database +3. Setup the postgres database: `createdb ` 4. In the root of the project, create `.env` file 5. Fill the `.env` file, example of the values can be copied from the `.env.example` file (NOTE: All values should be filled) @@ -32,8 +32,7 @@ following next steps: - Windows: `yarn windows:migrate` - Mac/Linux: `yarn migrate` 8. Run seeders - - Windows: `yarn windows:seed` - - Mac/Linux: `yarn seed` + `sequelize db:seed:all` 9. After everything has been completed, to run the app, use the `yarn dev` command for dev environment or `yarn start` for production build From 7e7f656641255d420c65c2408e4baa65704eaf02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20G=C3=B3rny?= Date: Wed, 26 Aug 2020 10:09:40 +0200 Subject: [PATCH 2/2] seeders now part of the package --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bd7fd6b..6272513 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ following next steps: - Windows: `yarn windows:migrate` - Mac/Linux: `yarn migrate` 8. Run seeders - `sequelize db:seed:all` + - Windows: `yarn windows:seed` + - Mac/Linux: `yarn seed` 9. After everything has been completed, to run the app, use the `yarn dev` command for dev environment or `yarn start` for production build