DEV Community

Discussion on: Do you always need to separate services and controllers?

Collapse
 
ekafyi profile image
Eka

Hi, thanks for this post.
Do you have any recommendation on where to start learning about “web logic”, “business logic”, middleware, controllers, and services? I’m generally at intermediate skill level but I’m terrible at this kind of thing.

Collapse
 
ccleary00 profile image
Corey Cleary

Yeah, different types of logic, and where that logic goes in your project is a tricky thing to figure out. Especially in the Node.js world, where there aren't a lot of conventions. I cover most of that in another post I wrote. It covers what the different types of logic are, where you should put them in your project (i.e. - controllers vs services), and how you should structure your project.