-2

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)

LukeG
  • 53
  • 9
  • 1
    To 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
  • 1
    The 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 Answers2

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.

Community
  • 1
  • 1
bob
  • 7,539
  • 2
  • 46
  • 42
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