todoAppOnNestJs
todoAppOnNestJs copied to clipboard
Simple Todo Application ( NestJs, Passport, Swagger, Docker )
Description
A simple TODO application under Docker environment.
- NestJS
- TypeORM
- PostgreSQL
- Swagger
- PGadmin4
- JWT
- Docker
Go to Medium to get the full tutorial.
Food App
Another nice repo that is based on a food-app and for the test, Jest-test has been used.
Running the app on docker
Docker build & start
# docker env build
$ docker-compose build
# docker env start
$ docker-compose up
# remove docker container (services & networks)
$ docker-compose down
Migration
# generate migration
$ docker-compose run nestjs npm run typeorm:generate AnyNameYouLike
# run migration
$ docker-compose run nestjs npm run typeorm:run
Running the app without docker
Installation
$ npm install
Migration
# generate migration
$ npm run typeorm:generate AnyNameYouLike
# run migration
$ npm run typeorm:run
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod