Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.24 KB

README.md

File metadata and controls

74 lines (48 loc) · 1.24 KB

NestJS Starter Template

NestJS Starter Template

This is a simple starter template for NestJS projects. It includes only basic configs and PNPM.

📦 Installation

Setup .env File

Copy .env.example file and rename as .env. Then you can specify your configs.

pnpm install

Running the app

# development
pnpm run start

# watch mode
pnpm run start:dev

# production mode
pnpm run start:prod

Test

# unit tests
pnpm run test

# e2e tests
pnpm run test:e2e

# test coverage
pnpm run test:cov

Example Commands

Create a module

nest g mo app/modules/<module-name>

Create a controller

nest g co app/modules/<module-name>/<controller-name>

Create a service

nest g s app/modules/<module-name>/<service-name>

Create a pipe

nest g pi app/modules/<module-name>/<pipe-name>

Create a model

nest g cl app/shared/<model-name>