nestjs-typescript-starter

majiayu000 的头像作者 majiayu000

官方 NestJS 入门程序,具有模块化架构和 Jest 测试。

📖 中文导读:官方 NestJS 入门程序,具有模块化架构和 Jest 测试。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: nestjs-typescript-starter description: Official NestJS starter with modular architecture and Jest testing.

NestJS TypeScript Starter

The official NestJS starter with modular architecture and testing.

Tech Stack

  • Framework: NestJS
  • Language: TypeScript
  • Testing: Jest
  • Package Manager: npm

Setup

1. Clone the Template

git clone --depth 1 https://github.com/nestjs/typescript-starter.git .

If the directory is not empty:

git clone --depth 1 https://github.com/nestjs/typescript-starter.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template

2. Remove Git History (Optional)

rm -rf .git
git init

3. Install Dependencies

npm install

Build

npm run build

Development

npm run start:dev