This application is a financial manager that helps keep track of the owner's finances.
# .env file settings
1. Create inside server dir file .env
2. Copy content from .env.dist to .env
3. Change the data in the .env file to required
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# generate a new migration
$ npm run migration:generate src/db/migrations/new_migration_name
# run migrations
$ npm run migration:run
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Change in the .env file variable
from
POSTGRES_HOST=localhost
to
POSTGRES_HOST=docker-host-db
# build the container
$ docker-compose build
# start the container
$ docker-compose up
# stop the container
$ docker-compose down