NestJS Boilerplate app with Node 18+, docker-compose, Postgres, TypeORM, Joi and GitHub Actions
localhost:3000/tasks
localhost:3000/tasks
BODY json payload example:
{
"content": "some todo"
}
localhost:3000/tasks/:id
BODY json payload example:
{
"done": true
}
localhost:3000/tasks/:id
$ cp .env.dist .env
$ cp docker-compose.override.yml.dist docker-compose.override.yml
$ npm install
Used Nodejs v20.9.0
# start db
$ docker compose up -d postgres
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# create a docker backend-service image and run the app
$ docker compose up
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov