mcpField
N
nestjs-typescript-starter

nestjs-typescript-starter

github.com/rebyteai-template开发1756 次安装19 周前更新
代码仓库

关于 nestjs-typescript-starter

nestjs-typescript-starter 是面向 TypeScript 应用开发者的官方 NestJS 入门模板,提供模块化项目结构、Jest 测试配置,以及基于 npm 的构建和开发命令。

主要功能

  1. 01官方 NestJS 入门模板
  2. 02模块化架构
  3. 03TypeScript 项目配置
  4. 04Jest 测试
  5. 05npm 构建与开发脚本

适用场景

  1. 01启动 NestJS TypeScript 应用
  2. 02创建模块化结构的项目
  3. 03在本地构建并运行起始项目

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/rebyteai-template/rebyte-skills --skill nestjs-typescript-starter

安装后在 Claude Code 中输入/nestjs-typescript-starter确认已加载。

详细介绍

NestJS TypeScript 入门模板

官方 NestJS 入门模板,采用模块化架构并支持测试。

技术栈

  • 框架:NestJS
  • 语言:TypeScript
  • 测试:Jest
  • 包管理器:npm

设置

1. 克隆模板
git clone --depth 1 https://github.com/nestjs/typescript-starter.git .

如果目录不为空:

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. 删除 Git 历史记录(可选)
rm -rf .git
git init
3. 安装依赖
npm install

构建

npm run build

开发

npm run start:dev

评论

支持 Markdown