express-typescript-boilerplate:用于构建大规模express-typescript API的样板

Express-Typescript API样板出色的Express样板,可使用Express和Typescript构建大型REST api特征一般的Mongo DB和Mongoose一起作为ODM基于Docker使用Redis作为临时数据库进行缓存响应Dotenv和配置模块来自本机js错误对象的自定义ApiError扩展基于NodeJ最佳实践的自定义错误处理程序基本服务和控制器的用法避免了重复代码。这些分类是可配置的。表现压缩中间件总异步代码安全Mongo进行消毒以避免Mongo指令注入头戴头盔的安全头启用Cors输入验证(检查类型并严格遵守允许的字段)基于具有刷新令牌模式的持续时间短的JWT的身份验证。身份验证和授权中间件请求限制器中间件测试用喷气机测试模板用法安装方式git clone git@github.com:e
zip
express-typescript-boilerplate-master.zip 预估大小:86个文件
folder
express-typescript-boilerplate-master 文件夹
file
.eslintrc.json 680B
file
.dockerignore 155B
folder
docker 文件夹
file
Dockerfile.prod 273B
file
Dockerfile.dev 462B
file
.env.example 306B
folder
__test__ 文件夹
folder
TEST.md 文件夹
file
yarn.lock 154KB
file
docker-compose.test.yml 680B
folder
src 文件夹
file
app.ts 2KB
folder
services 文件夹
folder
mail 文件夹
file
constants.ts 146B
file
index.ts 55B
file
mailer.ts 2KB
folder
index.ts 文件夹
folder
cache 文件夹
file
index.ts 53B
file
service.ts 2KB
file
client.ts 465B
folder
utils 文件夹
file
index.ts 55B
file
parsers.ts 748B
file
sluglify.ts 1KB
folder
db 文件夹
file
index.ts 25B
file
mongo.ts 1KB
folder
auth 文件夹
file
constants.ts 300B
file
index.ts 52B
file
jwt.ts 1KB
file
index.ts 435B
folder
lib 文件夹
file
logger.ts 2KB
file
ApiError.ts 2KB
file
index.ts 114B
file
ErrorHandler.ts 710B
file
httpCode.ts 878B
folder
middleware 文件夹
file
notFoudHandler.ts 375B
file
auth.ts 3KB
file
index.ts 186B
file
validatorHandler.ts 2KB
file
errorHandler.ts 651B
file
limiter.ts 840B
file
requestLogger.ts 733B
folder
core 文件夹
file
index.ts 111B
file
Controller.ts 3KB
file
Router.ts 984B
file
response.ts 1KB
file
Service.ts 5KB
folder
config 文件夹
file
utils.ts 325B
file
index.ts 2KB
folder
interfaces 文件夹
file
index.ts 283B
folder
api 文件夹
folder
users 文件夹
folder
DTO 文件夹
file
index.ts 64B
file
refreshToken.dto.ts 472B
file
user.dto.ts 1KB
file
router.ts 2KB
folder
services 文件夹
file
index.ts 32B
file
user.service.ts 3KB
folder
models 文件夹
file
user.model.ts 2KB
file
index.ts 68B
file
refreshToken.model.ts 751B
file
index.ts 82B
folder
controllers 文件夹
file
index.ts 35B
file
user.controller.ts 2KB
folder
events 文件夹
file
index.ts 67B
file
user.events.ts 887B
file
constants.events.ts 220B
folder
interfaces 文件夹
file
index.ts 76B
file
users.iterface.ts 713B
file
refreshToken.interface.ts 548B
file
index.ts 249B
folder
notes 文件夹
folder
DTO 文件夹
file
index.ts 28B
file
note.dto.ts 850B
file
router.ts 2KB
folder
services 文件夹
file
index.ts 32B
file
note.service.ts 567B
folder
models 文件夹
file
index.ts 30B
file
note.model.ts 1KB
file
index.ts 82B
folder
controllers 文件夹
file
index.ts 35B
file
note.controller.ts 1KB
folder
interfaces 文件夹
file
index.ts 24B
file
note.ts 512B
folder
.vscode 文件夹
file
settings.json 122B
file
tsconfig.json 2KB
file
LICENSE 1KB
file
jest.config.js 231B
file
README.md 2KB
file
docker-compose.local.yml 751B
file
.editorconfig 261B
file
.gitignore 474B
file
docker-compose.production.yml 653B
file
package.json 2KB
...
zip 文件大小:115.5KB