Tuesday, 21 January 2020

Best Node - Express strucure

Hello guys, I want to improve structure of my Node/Express app which is quite mess now with all in one file.It is just simple backend with routes/authentification and sql access.So, how should I separate all functionality?For example all routes in one file, all database functions another file, etc?-app.js -Routes -routes.js -Middleware -database.js -passport.js -Roles -user.js

Submitted January 21, 2020 at 03:56PM by hepepnyt

No comments:

Post a Comment