joonmyung / Nestjs-rest-api-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Checkout the git branches for below chapters.

Chapter 1:

  • Setting up a basic application

Chapter 2:

  • Added User resource
  • dto
  • class-validator
  • CURD routes

Chapter 3:

  • Added Swagger documentation

Chapter 4:

  • Used class-transformer to hide attribute from response

Chapter 5:

  • Added in-memory repository interface
  • Implemented in-memory repository

Chapter 6:

  • Added .env file to store enviroment variable
  • Created config module to read .env file
  • Added in Octa authentication interface

Swagger Api

http://localhost:3000/api#/ User Rest Api

About


Languages

Language:TypeScript 92.7%Language:JavaScript 7.3%