没有合适的资源?快使用搜索试试~ 我知道了~
node.js-clean-architecture:Node.js中Clean Architecture的用例,其中包括Exp...
共52个文件
js:42个
yml:2个
json:2个
需积分: 9 0 下载量 164 浏览量
2021-05-03
01:54:21
上传
评论
收藏 35KB ZIP 举报
温馨提示
node.js-clean-architecture Node.js中的Clean Architecture用例,其中包括Express.js,MongoDB和Redis作为主要(但可替换)基础架构。 概述 此示例是一个简单的RESTful API应用程序,用户可以在其中使用Clean Architecture创建/更新/删除/查找帖子。 提出的Clean Architecture的目标是分离软件中的关注点。 通过将软件划分为多个层,可以实现这种分离。 每一层都由更高层封装,并且层之间的通信方式是使用“依赖关系规则” 。 依赖规则 该规则表明,内圈中的任何事物都不能完全了解外圈中的任何事物。 依赖关系的方向是从外部开始的。这意味着Entities层是独立的,而Frameworks&Drivers层(Web,UI,DB等)依赖于所有其他层。 实体 包含应用程序组成的所有业务实体。 在我们
资源推荐
资源详情
资源评论
收起资源包目录
node_js-clean-architecture-master.zip (52个子文件)
node.js-clean-architecture-master
.eslintrc.json 732B
.gitignore 41B
.babelrc 96B
app.js 1KB
Dockerfile 1KB
adapters
controllers
postController.js 3KB
userController.js 2KB
authController.js 569B
package.json 2KB
src
entities
post.js 288B
user.js 245B
.dockerignore 12B
docker-compose.yml 552B
.github
workflows
node.js.yml 731B
README.md 3KB
tests
unit
post
api
api.spec.test.js 4KB
use_cases
use_cases.spec.test.js 3KB
fixtures
posts.js 2KB
application
services
authService.js 423B
use_cases
user
add.js 946B
countAll.js 103B
findByProperty.js 115B
findById.js 95B
auth
login.js 769B
post
deleteΒyId.js 239B
add.js 455B
updateById.js 604B
countAll.js 103B
findAll.js 101B
findById.js 95B
repositories
postRedisRepository.js 151B
userDbRepository.js 430B
postDbRepository.js 493B
frameworks
services
authService.js 639B
webserver
middlewares
redisCachingMiddleware.js 398B
authMiddleware.js 670B
errorHandlingMiddleware.js 450B
routes
index.js 348B
auth.js 742B
post.js 1KB
user.js 968B
express.js 904B
server.js 2KB
database
redis
postRepositoryRedis.js 243B
connection.js 382B
mongoDB
models
post.js 775B
user.js 611B
connection.js 960B
repositories
userRepositoryMongoDB.js 960B
postRepositoryMongoDB.js 1KB
config
config.js 320B
.prettierrc 86B
共 52 条
- 1
资源评论
pangchenghe
- 粉丝: 32
- 资源: 4535
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功