- Postgres SQL 12
- NodeJS 10|12
Create DB
createdb -O user_user theproject_test_db
OR
Create configuration file for your local db connection. You could create config/local.json
file or change config/base.json
:
{
"db": {
"host": "host",
"username": "user",
"password": "password"
}
}
Insall dependencies and compile ts:
yarn install --pure-lockfile
yarn compile
yarn migration:run
Starts server on http://localhost:3000
by default
yarn start
Upload test data to db
yarn fixture:author
Run integration tests. Starts app with stub db connection
yarn test
Run in DEV mode
yarn start-dev
- PROJECT_ENV - Optional env variable, set to
DEV
to run app with your local configuration (config/local.json
)