Node.js MVC framework [closed]

2019-03-08 02:26发布

I would like to use Node.js to develop a website. I've seen a lot of frameworks here: https://github.com/joyent/node/wiki/modules#web-frameworks-micro but do not know which one is the most accepted by the community (let's say: the most popular). Did anyone tried any of these frameworks and/or used it in production and what is your experience? Thanks.

9条回答
贼婆χ
2楼-- · 2019-03-08 02:28

Another great MVC framework that is up and coming is Sails.JS. It is inspired by ruby on rails and has features such as socket support, Restful API and more.

http://www.sailsjs.com/

查看更多
成全新的幸福
3楼-- · 2019-03-08 02:30

Just came across a new one called Derby which looks like it has a lot of promise. Its main benefit seems to be that it cuts down on a lot of the "glue code" (as they put it) that we often write when trying to use rails and backbone, or django and backbone together. The documentation seems pretty decent for a node framework as well.

查看更多
我只想做你的唯一
4楼-- · 2019-03-08 02:33

Geddy was the original MVC framework for Nodejs, check out http://geddyjs.org if you're interested.

查看更多
兄弟一词,经得起流年.
5楼-- · 2019-03-08 02:37

Express.js seems to very popular to use as a general framework. Combined with socketio.js and underscore.js these are very popular libraries but they are not MVC.

For MVC I've only used backbone.js / spine.js and can't give any recommendation for the others. I don't think there is a framework with a dominating popularity going yet because node.js doesn't have much use in production.

There are statistics for popular downloads with npm somewhere. See if you can find them.

查看更多
放荡不羁爱自由
6楼-- · 2019-03-08 02:48

I just released Locomotive, which is an MVC framework inspired by Ruby on Rails.

Express is phenomenal, especially for smaller apps. Recognizing that, Locomotive is built completely on top of Express (similar to how Express builds on top of Connect). Locomotive essentially adds a controller layer along with a router that can declare resourceful routes and generates routing helper functions. Internally, everything is powered by Express, which means the view layer remains the same and all middleware can be reused.

One of the bigger hurdles when learning Node is figuring out how to best structure a web application. Locomotive attempts to solve that problem, using conventions from Ruby on Rails, while retaining the full power of Express and Node.

查看更多
Bombasti
7楼-- · 2019-03-08 02:52

Try RailwayJS. CompoundJS

RailwayJS seems to have been killed and replaced with CompoundJS.

There's a guide for anyone that started with Railway and wants to migrate to Compound.

查看更多
登录 后发表回答