Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File structure #35

Open
Armand-Lluka opened this issue Dec 21, 2018 · 0 comments
Open

File structure #35

Armand-Lluka opened this issue Dec 21, 2018 · 0 comments
Labels

Comments

@Armand-Lluka
Copy link

Overall it's very good and you have followed proper protocol. This can be improved further by

Routes - This is where you handle get/post requests, this is then forwarded to the controllers

Models - one file per resource (eg. UserModel.js for interacting with my 'user' table/collection/whatever in my database); all my data models that depend on the db connection object.

Controllers - one file per resource (eg. UserController.js for all route functions for users); all my code that serves my routes

mvc express

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants