Skip to content

como65416/NestJS-Shop-Example

Repository files navigation

Nest Logo

a simple Nest JS project

Use:

  • RESTFul API
  • Validation
  • JWT validation (Middleware)
  • Guards (Role Check)
  • Error Handler (Filter)
  • Custom Repository
  • Entity, DTO, Relation
  • E2E test (alternative by SQLite)
  • API doc (Swagger)
  • Inject request id to logger example (@Injectable({ scope: Scope.REQUEST }))

Environment

  • NodeJS (has been tested on Node.js v15.0.1)

  • MySQL >= 5.6 (Dataset : database.sql)

Usage

step 1. import database

step 2. set up ormconfig.json

step 3. install packages

npm ci

Develop

npm run start:dev

Build and Run as Production

npm run build
node --enable-source-maps dist/main.js

Other

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published