DhiWise / dhiwise-nodejs

DhiWise Node.js API generator allows you to instantly generate secure REST APIs. Just supply your database schema to DhiWise, and a fully documented CRUD APIs will be ready for consumption in a few simple clicks. The generated code is clean, scalable, and customizable.
https://dhiwise.com
Apache License 2.0
318 stars 89 forks source link

:rocket: Feature: Add a service layer that contains the business logic in the clean code architecture #19

Closed saloni137 closed 2 years ago

saloni137 commented 2 years ago

problem The problem with the current architecture is that, all the business logic of APIs are in the controller files. so if I want to use to same logic in any other function then I can't reuse the code. (for eg, same APIs logic for desktop , client and device platforms with minor changes)

solution The service layer (basically called use cases) that contains business logic so it can be resuable for multiple platforms.