I'm looking for a JS framework, which would help me to divide the code into categories. Whenever I do any apps, I don't use any framework and even tho it's working, my code looks really untidy, it lacks a nice structure. Can you advise any nicely formatted, object oriented, MVC framework which works well with node.js apps and EJS? (besides express.js)
Asked
Active
Viewed 34 times
-2
-
1To organize your code, you want [modules](http://www.2ality.com/2014/09/es6-modules-final.html). Asking for an MVC framework here is off-topic (software request), but a quick google search will show you a few. – ssube Jan 13 '16 at 16:52
-
1The framework doesn't necessarily organize your code for you. You could check out sails.js (for instance) if you want an opinionated way of organizing your folders, though. – Daniel Lizik Jan 13 '16 at 17:01
-
Tool recommendation questions are off-topic for StackOverflow. – David Makogon Jan 13 '16 at 19:10
2 Answers
2
I recommend TypeScript. If you're not interested in running your code through a compiler, check out this answer:
Constructors in JavaScript objects
... explains how I like to set things up so I can have a general "class" structure and keep different parts of the app in different files.
0
Express is the most used framework for Node.js
Apart, if you are looking for something similar to the relation ruby - rails which gives you a predefined project structure (controllers, models...) probably you can take a look to yeoman
For an angular + node app I'd go with this particular generator: angular-fullstack

Manu Artero
- 9,238
- 6
- 58
- 73