- Install npm packages
$ npm install
- Create postgres db. For example in docker.
docker run -d \
--name some-postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v /custom/mount:/var/lib/postgresql/data \
postgres
- Run script in
'./src/db.sql'
in your db to create all tables. - Write db credentials in
'.env'
file. - Run app
# development
$ npm run start
$ npm run start:dev
$ npm run start:prod