Skip to content

LouisKoXiang/Nest.js_basic

Repository files navigation

Description

Use Nest framework TypeScript starter repository. Nest.js Controller & constructor + Injectable & @Module

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Try api

# create {POST}
http://127.0.0.1:3000/cats 

body raw 
{
	"name": "small white",
	"age": 3,
	"breed": "Garfield"
}

# Find {get}
http://127.0.0.1:3000/cats

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About

Nest.js Controller & constructor + Injectable & @module

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published