没有合适的资源?快使用搜索试试~ 我知道了~
node-backend-template:NodeJS后端项目的模板
共97个文件
ts:79个
json:4个
js:3个
需积分: 12 0 下载量 17 浏览量
2021-02-05
07:39:29
上传
评论
收藏 186KB ZIP 举报
温馨提示
欢迎使用我的后端模板 :waving_hand: NodeJS后端项目的模板 | | | | 描述 该模板以Typescript,TypeORM和Express编码,包含带有密码恢复系统的登录名。 此外,还应具有MongoDB的通知提供程序和Redis提供程序以用于缓存。 恢复密码电子邮件系统是使用AWS SES设置用于生产的,配置文件头像设置将使用AWS S3保存。对于提交,我们使用commitlint / commitizen / husky和for设置配置。 对于代码分析,我们使用ESLint和Prettier。 对于测试,我们使用的是JEST。 您可以在“技术”部分看到我们正在使用的所有依赖项。 要使用此
资源推荐
资源详情
资源评论
收起资源包目录
node-backend-template-master.zip (97个子文件)
node-backend-template-master
insomnia_workspace.json 8KB
package.json 2KB
.eslintrc.json 1KB
jest.config.js 6KB
prettier.config.js 91B
LICENSE 1KB
ormconfig.json.example 655B
.env.example 303B
src
config
mail.ts 344B
upload.ts 925B
cache.ts 349B
auth.ts 104B
shared
infra
typeorm
migrations
1589497292933-CreateUserTokens.ts 1KB
1587817292494-AddAvatarFieldToUsers.ts 515B
1587775378047-CreateUsers.ts 1KB
index.ts 67B
http
routes
index.ts 559B
server.ts 1KB
middlewares
rateLimiter.ts 754B
container
providers
CacheProvider
models
ICacheProvider.ts 231B
implementations
RedisCacheProvider.ts 1KB
fakes
FakeCacheProvider.ts 855B
index.ts 298B
MailProvider
models
IMailProvider.ts 140B
implementations
EtherealMailProvider.ts 1KB
SESMailProvider.ts 1KB
fakes
FakeMailProvider.ts 311B
dtos
ISendMailDTO.ts 318B
index.ts 488B
StorageProvider
models
IStorageProvider.ts 132B
implementations
S3StorageProvider.ts 1KB
DiskStorageProvider.ts 722B
fakes
FakeStorageProvider.ts 496B
index.ts 467B
index.ts 112B
MailTemplateProvider
models
IMailTemplateProvider.ts 174B
implementations
HandlebarsMailTemplateProvider.ts 623B
fakes
FakeMailTemplateProvider.ts 253B
dtos
IParseMailTemplateDTO.ts 168B
index.ts 379B
index.ts 975B
errors
AppError.ts 237B
@types
express.d.ts 100B
modules
users
repositories
fakes
FakeUserTokensRepository.ts 865B
FakeUsersRepository.ts 1KB
IUsersRepository.ts 471B
IUserTokensRepository.ts 224B
infra
typeorm
repositories
UserTokensRepository.ts 833B
UsersRepository.ts 1KB
entities
User.ts 929B
UserToken.ts 414B
http
routes
users.routes.ts 921B
profile.routes.ts 755B
password.routes.ts 897B
sessions.routes.ts 472B
controllers
ResetPasswordController.ts 527B
UserAvatarController.ts 609B
ProfileController.ts 1KB
UsersController.ts 591B
ForgotPasswordController.ts 565B
SessionsController.ts 638B
middlewares
ensureAuthenticated.ts 799B
dtos
IFindAllProvidersDTO.ts 77B
ICreateUserDTO.ts 97B
views
forgot_password.hbs 531B
providers
HashProvider
models
IHashProvider.ts 159B
implementations
BCryptHashProvider.ts 405B
fakes
FakeHashProvider.ts 344B
index.ts 269B
services
UpdateProfileService.ts 2KB
CreateUserService.ts 1KB
ResetPasswordService.ts 1KB
ShowProfileService.spec.ts 1KB
ResetPasswordService.spec.ts 3KB
ShowProfileService.ts 660B
UpdateUserAvatarService.ts 1KB
AuthenticateUserService.ts 1KB
AuthenticateUserService.spec.ts 2KB
CreateUserService.spec.ts 1KB
SendForgotPasswordEmailService.ts 2KB
UpdateProfileService.spec.ts 3KB
UpdateUserAvatarService.spec.ts 2KB
SendForgotPasswordEmailService.spec.ts 2KB
notifications
repositories
INotificationsRepository.ts 252B
fakes
FakeNotificationsRepository.ts 805B
infra
typeorm
repositories
NotificationsRepository.ts 852B
schemas
Notification.ts 441B
dtos
ICreateNotificationDTO.ts 95B
tsconfig.json 501B
tmp
uploads
.gitkeep 0B
.gitkeep 0B
.gitignore 143B
commitlint.config.js 70B
README.md 5KB
yarn.lock 294KB
.eslintignore 24B
.editorconfig 146B
共 97 条
- 1
资源评论
易三叨
- 粉丝: 41
- 资源: 4610
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功