简体   繁体   English

node.js的框架+数据库

[英]Framework + database for node.js

I'm used to developped on ruby mainly using RoR and deploying on heroku. 我习惯于主要使用RoR开发ruby并在heroku上部署。 I'd like to find out if a similar environment exists for node.js. 我想知道node.js是否存在类似的环境。 I saw nodester.com (I'm still waiting for my coupon) but it seems there is no underlying database. 我看到了nodester.com(我还在等待我的优惠券),但似乎没有底层数据库。 Would you recommand a specific DB to work with node.js ? 你会推荐一个特定的DB来使用node.js吗? Also, is there a kind of framework like RoR that could provide ORM capabilities (like ActiveRecord) ? 还有,像RoR这样的框架可以提供ORM功能(如ActiveRecord)吗?

I started work on ActiveRecord implementation of MySQL for NodeJS on GitHub a while ago. 我刚开始在GitHub上开始为NodeJS实现MySQL的ActiveRecord It uses node-mysql module and the interface is similar to ActiveRecord class of CodeIgniter (a PHP framework). 它使用node-mysql模块,接口类似于CodeIgniter的ActiveRecord类(PHP框架)。

Would you recommand a specific DB to work with node.js ? 你会推荐一个特定的DB来使用node.js吗?

MongoDB or Redis , but it depends on your use case. MongoDBRedis ,但这取决于您的用例。

Also, is there a kind of framework like RoR that could provide ORM capabilities (like ActiveRecord) ? 还有,像RoR这样的框架可以提供ORM功能(如ActiveRecord)吗?

Try to look at Express and mongoose . 试着看看Express猫鼬

Also check out a list of node.js modules . 另请查看node.js 模块列表。

Being that node is supported by Joyent (and some of the primary developers are employed by Joyent), you might want to look to them for hosting options: https://no.de/ 由于Joyent支持该节点(并且一些主要开发人员受雇于Joyent),您可能希望向他们寻求托管选项: https//no.de/

Express is the primary framework in the land of node right now, but I'm not sure that ActiveRecord and Mongo are the happiest of pairs, you might want to look at MySQL options for node at that point. Express是目前节点领域的主要框架,但我不确定ActiveRecord和Mongo是最幸福的对,你可能希望在那时查看节点的MySQL选项。 Something like noblerecord might work for you: https://github.com/noblesamurai/noblerecord 像noblerecord这样的东西可能适合你: https//github.com/noblesamurai/noblerecord

Check this: 检查一下:

Web application framework partial.js: https://github.com/petersirka/partial.js Web应用程序框架part​​ial.js: https//github.com/petersirka/partial.js

  • Async web framework 异步Web框架
  • Simple view system 简单的视图系统
  • Simple routing 简单的路由
  • Supports simple CouchDB provider 支持简单的CouchDB提供程序
  • Supports simple ORM (via HTTP-RDBMS) 支持简单的ORM(通过HTTP-RDBMS)

https://github.com/petersirka/http-rdbms/ https://github.com/petersirka/http-rdbms/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM