Node.js MVC 框架

发布于 2024-10-20 23:05:54 字数 1539 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

驱逐舰岛风号 2024-10-27 23:05:54

Express.js 似乎非常流行用作通用框架。与 socketio.jsunderscore.js 结合使用,这些是非常流行的库,但它们不是 MVC。

对于 MVC,我只使用过 backbone.js / spine.js,无法为其他人提供任何建议。我认为目前还没有一个具有主导地位的框架,因为 Node.js 在生产中没有太多用处。

某处有 npm 流行下载的统计数据。看看你是否能找到它们。

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.

み青杉依旧 2024-10-27 23:05:54

另一个即将出现的优秀 MVC 框架是 Sails.JS。它的灵感来自 ruby​​ on Rails,具有套接字支持、Restful API 等功能。

http://www.sailsjs.com/

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/

诗化ㄋ丶相逢 2024-10-27 23:05:54

尝试 RailwayJS CompoundJS

RailwayJS 似乎已被杀死并被CompoundJS 取代。

对于任何刚开始接触 Railway 和想要迁移到Compound。

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.

乄_柒ぐ汐 2024-10-27 23:05:54

我刚刚发布了 Locomotive,这是一个受 Ruby on Rails 启发的 MVC 框架。

Express 非常出色,尤其是对于较小的应用程序。认识到这一点,Locomotive 完全构建在 Express 之上(类似于 Express 构建在 Connect 之上)。 Locomotive本质上添加了一个控制器层和一个可以声明资源丰富的路由并生成路由辅助函数的路由器。在内部,一切都由 Express 提供支持,这意味着视图层保持不变,并且所有中间件都可以重用。

学习 Node 时最大的障碍之一是弄清楚如何最好地构建 Web 应用程序。 Locomotive 尝试使用 Ruby on Rails 的约定来解决这个问题,同时保留 Express 和 Node.js 的全部功能。

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.

栩栩如生 2024-10-27 23:05:54

斗牛士。它是MVC,由许多不同的现有组件组成,例如用于继承模型的Klass、express、hogan。 js 和情人节。 Backbone.js 几乎用于客户端。对于node,我想可能只有我认识的斗牛士了。

如果您要使用 matador 进行生产或替换现有的 MVC 平台(或者至少有瓶颈/有充分的理由使用它),我建议您不要使用它,因为它很新,而且您的生产力也取决于 javascript你拥有的资源。我们自己非常广泛地使用node.js(迄今为止,我们的node.js部署服务了近400万用户),并且我们这里有大量的javascript专家..所以我们进行了很多实验,并且可能很快就会考虑使用matador。希望有帮助。

There is matador. It is MVC and it consists of many different existing components, such as Klass for inheritance model, express, hogan.js, and valentine. Backbone.js is pretty much used for client side. For node, i think there's probably only matador that I know.

I'd suggest you against using it if you're to use matador for production or replace your existing MVC platform (or at least have a bottleneck/good reason to use it) since it's pretty new, and your productivity also depends on the javascript resources you have. We ourselves use node.js very extensively (our node.js deployment serves close to +4 Million users to date) and we have a significant number of javascript specialists here..so we experiment a lot and probably look into using matador soon. Hope that helps.

岁月如刀 2024-10-27 23:05:54

Geddy 是 Nodejs 的原始 MVC 框架,如果您感兴趣,请查看 http://geddyjs.org

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

风筝有风,海豚有海 2024-10-27 23:05:54

刚刚发现了一个名为 Derby 的新产品,它看起来很有前途。它的主要好处似乎是它减少了我们在尝试同时使用rails和backbone或django和backbone时经常编写的大量“粘合代码”(正如他们所说的)。对于节点框架来说,该文档似乎也相当不错。

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.

裂开嘴轻声笑有多痛 2024-10-27 23:05:54

Monorail.js - Node.js 的超轻量级 MVC 框架
https://github.com/runexec/Monorail.js

Monorail.js - Ultra lightweight MVC Framework for Node.js
https://github.com/runexec/Monorail.js

以酷 2024-10-27 23:05:54

您还可以查看其他一些框架:

ThinkJS https://thinkjs.org/ 第一个 Node.js MVC可以使用完整 ES6/7 功能来开发 Node.js 应用程序的框架。

Feathers http://feathersjs.com/ 一个极简的实时框架。

Meteor https://www.meteor.com/

Keystone.js http://keystonejs.com/ 基于 Express 和 MongoDB(MIT 许可证)构建。

seneca.js http://senecajs.org/ 业务逻辑外部的所有内容 - 例如数据库、缓存和第三方 -各方集成 - 隐藏在微服务背后。

Catberry http://catberry.org/ 的开发目的是帮助创建在服务器和客户端上使用相同代码库的应用程序渲染客户端所看到的“单页应用程序”的环境。

Nuke.js http://nukejs.com/#/ 快速框架。该堆栈包含 primus、express、mithril、mongodb 和 redis

Hapi.js http://hapijs.com/ 富 Web 应用程序Node.js 的服务器框架。

Total.js https://www.totaljs.com/ 该框架包含完整的 Web 服务器、视图引擎、SMTP邮件发送器、本地化、图像处理、websockets、同构代码和许多实用程序

There are a few more frameworks which you could check:

ThinkJS https://thinkjs.org/ the first Node.js MVC framework that can use full ES6/7 features to develop Node.js application.

Feathers http://feathersjs.com/ a minimalist real-time framework.

Meteor https://www.meteor.com/

Keystone.js http://keystonejs.com/ built on Express and MongoDB (MIT license).

seneca.js http://senecajs.org/ Everything external to a business logic - such as databases, caches and third-party integrations - is hidden behind microservices.

Catberry http://catberry.org/ was developed to help create apps that use the same codebase on both the server and client environments to render what the client would see as a "Single Page Application".

Nuke.js http://nukejs.com/#/ Fast framework. The stack contains primus, express, mithril, mongodb and redis

Hapi.js http://hapijs.com/ rich web application server framework for Node.js.

total.js https://www.totaljs.com/ The framework contains full web server, view engine, SMTP mail sender, localization, image processing, websockets, isomorphic code and a lot of utilities

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文