A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
npm install
# Spin local DB
# PGAdmin: host.docker.internal
docker-compose up -d
# development
npm run start
# watch mode
npm run start:dev
# production mode
npm run start:prod
# unit tests
npm run test
# e2e tests
npm run test:e2e
# test coverage
npm run test:cov
The app will be deployed to Heroku.
Before we can deploy the app, we need to create a Postgress db in Heroku and to set the db credencials in a config file.
- doc
- App Postgress dashboard and also in here
- After creating the db, find the db credencials in the db dashboard page
- To set the environmetn variables, go to the app dashboard's settings page. Scroll down to
Config Vars
and click onReveal Config Vars
. - Fill in the Postgress, JWT and other vars.
# Do only once
heroku login
# Do only once
heroku git:remote -a mynestjs
# Deploy
git push heroku master
# Watch app logs
heroku logs --tail
Nestjs tutorial
- [Done] sign in user after registring