How should I order my backend files is it bad to have a lot of files on the backend or is there any documentation about this. I want to make my backend files to be in a good layout not confusing.
Do you have any notes or tips about this?
How should I order my backend files is it bad to have a lot of files on the backend or is there any documentation about this. I want to make my backend files to be in a good layout not confusing.
Do you have any notes or tips about this?
I’m working on a blog post about that. Could you precise your question? What would you like to know?
Personnaly, I like to separate responsabilities per files. I structure my backend like this:
Routers
members.js
products.js
Data
members.js
products.js
members.jsw
products.jsw
Where jsw exposes backend functions to the frontend.
Both jsw and router files import functions from Data modules. Data modules deals with the data layer and business
I did not notice any performance issue on any project