Reputation:
Would this be an acceptable layout for my express application structure
models Mongoose Models and Schemas for the Application
views Jade template files
routes Routing files
controller Form Handling and API Handling (POST/JSON)
If this is not the best way to structure an application, what is, are there any examples?
Thanks.
Upvotes: 2
Views: 6002
Reputation: 395
Try express-orm-mvc A simple package that support express and orm with mvc template
Upvotes: 2
Reputation: 45277
Here's an example directly from the Express code examples.
Likewise there's a question here about this same topic.
Note that Express has several potential uses, so there's limited prescriptive guidance here.
Upvotes: 3