DEV Community

Discussion on: Project structure for an Express REST API when there is no "standard way"

Collapse
 
paulasantamaria profile image
Paula Santamaría • Edited

This is exactly the same structure I use on most of my node+express projects.

When I started working with express.js I felt the same way, couldn't find any good resources about how to structure my REST APIs, so I just build my own in the way that felt more natural to me at that time. I'm happy it makes sense for others too.

Collapse
 
ccleary00 profile image
Corey Cleary

Great to hear someone else follows this too - I think it's the most logical structure to end up with if you separate the concerns of your logic like I detailed in this post. Even if you want to change the structure later, it's trivial to do so.