ZOYKUHot Board

catsmiaow/nestjs-project-performanceTài liệu kỹ thuật

Node.js framework NestJS project for performance

Thông báo ngôn ngữ:Chưa có tài liệu tiếng Việt cho kho lưu trữ này. Đang hiển thị bản gốc tiếng Anh chính thức.
npm i nestjs-project-performance

nestjs-project-performance

Node.js framework NestJS project for performance

If you focus on the performance or features of the module, you can consider using another module as an alternative in NestJS.
In this example, the changed modules are as follows.

Configuration

  1. Create a .env file
  2. Edit env config
    • Edit the file in the config/envs folder.
    • default, development, production, test

Installation

# 1. node_modules
pnpm install
# 2. When synchronize database from existing entities
pnpm entity:sync
# 2-1. When import entities from an existing database
pnpm entity:load

Development

pnpm start:dev

Run http://localhost:3000

Test

pnpm test # exclude e2e
pnpm test:e2e # only e2e

Production

# define NODE_ENV and PORT
pnpm build
# NODE_ENV=production PORT=8000 node dist/app.js
node dist/app.js

Documentation

# https://docs.nestjs.com/openapi/cli-plugin#swc-builder
# Update the metadata before running the swagger server.
pnpm esm bin/generate-metadata.ts
# API, Swagger - src/swagger.ts
pnpm doc:api #> http://localhost:8000/api

Implements

Bản sao tài liệu lưu trữ từ kho lưu trữ GitHub chính thức · Xem trên GitHub
Ngày đồng bộ: 2026-11-09