/todoAppOnNestJs

Simple Todo Application ( NestJs, Passport, Swagger, Docker )

Primary LanguageTypeScript

Nest Logo

Description

A simple TODO application under Docker environment.

  • NestJS
  • TypeORM
  • PostgreSQL
  • Swagger
  • PGadmin4
  • JWT
  • Docker

Go to Medium to get the full tutorial.

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