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