async-labs / saas

Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
https://saas-app.async-await.com
MIT License
4.06k stars 675 forks source link

code base structure and server code #61

Closed jaylensoeur closed 4 years ago

jaylensoeur commented 4 years ago

I find it very common in the Node community write code this way. There is nothing wrong with it, however, in the last few years I have moved away from it and started using clean architecture.

In the example below the code base uses OOP - you can however easily replace it with functional paradigm. Try to ignore the paradigm used, look at the structure which i think works well. The drawback is a bit more boiler plate code though.

This is an example: https://github.com/jaylensoeur/momenton-task

So my question is: Is this too complicated or overkill? and what is your opinion on the example I've linked.

Thanks

delgermurun commented 4 years ago

https://github.com/jaylensoeur/momenton-task is no longer exists (or not public anymore), so closing this issue.