Skip to content

使用 Nestjs 8.x 以微服务方式开发的基础管理后台服务,并搭配 React 开发的管理后台前端(可自行根据 swagger 的接口开发对应的管理后台前端)

Notifications You must be signed in to change notification settings

ArcherGu/nest-serve

 
 

Repository files navigation

Nest Serve v4

使用 Nestjs 10.x 开发的基础管理后台服务,极大简约了代码,降低开发成本
Nestjs 10.x 中文开发文档

旧版本

配置

一般情况下可以直接用当前配置,但如果要区分环境的话,就需要在 config 文件夹下添加这两个文件

  • development.yaml
  • production.yaml

在运行时会根据环境变量 NODE_ENV=配置文件名 进行选择加载,如

NODE_ENV=production yarn start // 加载 production.yaml 覆盖配置

环境变量为空时,默认会尝试加载 development.yaml

文件目录

  • common 公共模块
    • tools 工具函数、二次封装的装饰器
    • imports 默认模块
      • config 配置模块
      • logger 日志模块
      • upload 文件上传模块
    • providers 数据/异常拦截
    • controller 公共控制器
    • dto 公共数据对象
    • entity 公共数据实体
    • service 公共服务
    • initialize.ts 项目初始化流程
  • account 帐号模块
    • role 帐号角色
    • admin 管理员帐号
    • user 用户帐号
    • auth 授权模块
  • infos 信息模块
    • category 基础信息分类
    • article 文章管理

About

使用 Nestjs 8.x 以微服务方式开发的基础管理后台服务,并搭配 React 开发的管理后台前端(可自行根据 swagger 的接口开发对应的管理后台前端)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.1%
  • JavaScript 0.9%