Skip to content

Node.js Quickstart GeneratorKhởi tạo kiến trúc chuẩn Production trong tích tắc

Tạo sẵn khung dự án MVC hoặc Clean Architecture với Auth, Kafka, GraphQL, và Terraform Đa đám mây.

Cấu hình Dự án của bạn

Cấu hình dự án
Star

Advanced Options (Terraform, Resilience, etc.)

Mô phỏng cấu trúc thư mục

nodejs-service
.github
workflows
ci.yml
.husky
pre-commit
flyway # Quản lý migration cơ sở dữ liệu
sql
V1__initial_setup.sql
prompts # Các prompt hệ thống cho AI agent
project-context.md
add-feature.md
troubleshoot.md
scripts
run-e2e.js # Trình điều phối test E2E (khởi động server và chạy test)
src
errors
ApiError.ts
BadRequestError.ts
NotFoundError.ts
config # Cấu hình toàn hệ thống (DB, Cache, Swagger)
env.ts
database.ts
swagger.ts
swagger.yml
controllers # Xử lý yêu cầu & xác thực dữ liệu đầu vào
userController.ts
models # Schema dữ liệu & thực thể nghiệp vụ
User.ts
routes # Các điểm cuối định tuyến Express API
api.ts
healthRoute.ts
views
utils
errorMessages.ts
httpCodes.ts
logger.ts
errorMiddleware.ts # Xử lý lỗi toàn cục (Chuẩn kiến trúc)
gracefulShutdown.ts # Tắt tiến trình an toàn khi nhận SIGTERM/SIGINT
index.ts # File đầu vào của ứng dụng
tests
e2e # Kiểm thử tích hợp cấp cao (Kiểm thử toàn bộ luồng)
e2e.users.test.ts
unit # Kiểm thử logic nghiệp vụ cô lập
tsconfig.json
tsconfig.json
tsconfig.eslint.json
package.json
.cursorrules
.gitattributes # Cấu hình kho lưu trữ Git
.lintstagedrc # Quy tắc định dạng và lint trước khi commit
.prettierrc # Tùy chọn phong cách code
README.md
.env.example # Biến môi trường
eslint.config.mjs # Thực thi chất lượng và phong cách code.
jest.config.js
jest.e2e.config.js
ecosystem.config.js
Dockerfile
.dockerignore
docker-compose.yml # Cơ sở hạ tầng đa container cục bộ

Phát hành theo giấy phép ISC.
Kiến trúc bởi các Technical Writer trên System Weakness. NPM Downloads GitHub Stars