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 })
)
-
NodeJS (has been tested on Node.js v15.0.1)
-
MySQL >= 5.6 (Dataset : database.sql)
step 1. import database
step 2. set up ormconfig.json
step 3. install packages
npm ci
npm run start:dev
npm run build
node --enable-source-maps dist/main.js