talyssonoc / node-api-boilerplate

DDD/Clean Architecture inspired boilerplate for Node web APIs
https://github.com/talyssonoc/node-api-boilerplate/wiki
MIT License
3.31k stars 541 forks source link

Didn't see service, repository, usecases #48

Closed mrdulin closed 5 years ago

mrdulin commented 5 years ago

I think this boilerplate should be improved.

talyssonoc commented 5 years ago

There is a use case here: https://github.com/talyssonoc/node-api-boilerplate/blob/master/src/app/user/CreateUser.js And a repository here: https://github.com/talyssonoc/node-api-boilerplate/blob/master/src/infra/user/SequelizeUsersRepository.js

The example application is too simple to justify the use of a service.

The idea is to provide a boilerplate of a application that makes it easy to use a good architecture, not to serve an example for every Clean Architecture or DDD tactical patterns.