NestJS TypeORM后端样板一键搭建接口系统

开箱即用的 Nest 后端样板,挺适合想省事儿搭建接口的你。集成了身份验证、日志、安全、防护、数据库这些常用功能,省去不少重复造轮子的时间。用TypeORM连数据库,配合MySQL或 Docker,一键就能跑起来,响应也快。

开发测试也方便,直接改.env里的配置就行,本地跑或者用 Docker 都没问题。如果你喜欢用 Mac 或 Windows 上的 Docker Desktop,按走基本不会踩坑。

适合什么场景?比如你要做个后台管理系统、API 服务或者快速原型验证,这套模板都能省掉一大半初始化的时间。嗯,唯一要注意的是数据库别忘了先启动,不然第一次跑会报错。

如果你懒得从零配置后端,又想用上TypeScriptNestJS的语法糖,这个仓库真心还不错,直接克隆下来就能玩。

zip
nest-rest-typeorm-boilerplate-master.zip 预估大小:49个文件
folder
nest-rest-typeorm-boilerplate-master 文件夹
file
tsconfig.spec.json 165B
file
.dockerignore 13B
file
tsconfig.build.json 117B
folder
docker 文件夹
file
vhost.template 457B
file
entrypoint-nginx.sh 180B
file
.env.example 216B
file
yarn.lock 333KB
folder
src 文件夹
file
main.ts 1KB
folder
modules 文件夹
folder
auth 文件夹
folder
payload 文件夹
file
login.payload.ts 439B
file
register.payload.ts 722B
file
jwt.strategy.ts 1KB
file
auth.service.ts 3KB
file
auth.module.ts 1KB
file
auth.controller.ts 2KB
folder
winston 文件夹
file
winston.constants.ts 298B
file
winston.providers.ts 1KB
file
winston.module.ts 999B
file
winston.module.spec.ts 1KB
file
winston.interfaces.ts 543B
folder
profile 文件夹
file
profile.service.ts 4KB
file
profile.entity.ts 1KB
folder
payload 文件夹
file
patch.profile.payload.ts 656B
file
profile.module.ts 537B
file
password.transformer.ts 448B
file
profile.controller.ts 3KB
folder
config 文件夹
file
config.service.ts 2KB
file
config.module.ts 268B
folder
app 文件夹
file
app.service.ts 756B
file
app.roles.ts 591B
file
app.module.ts 3KB
file
roles.entity.ts 737B
file
app.controller.ts 1KB
file
Dockerfile 264B
file
nest-cli.json 84B
file
.travis.yml 287B
file
tsconfig.json 348B
folder
test 文件夹
file
jest-e2e.json 183B
file
app.e2e-spec.ts 5KB
file
.prettierrc 51B
file
tslint.json 426B
file
README.md 10KB
file
nodemon.json 148B
file
nodemon-debug.json 152B
file
renovate.json 62B
file
main 952B
file
docker-compose.yml 715B
file
.gitignore 3KB
file
Dockerfile-Nginx 226B
file
package.json 3KB
zip 文件大小:169.62KB