简体   繁体   中英

Framework + database for node.js

I'm used to developped on ruby mainly using RoR and deploying on heroku. I'd like to find out if a similar environment exists for node.js. I saw nodester.com (I'm still waiting for my coupon) but it seems there is no underlying database. Would you recommand a specific DB to work with node.js ? Also, is there a kind of framework like RoR that could provide ORM capabilities (like ActiveRecord) ?

I started work on ActiveRecord implementation of MySQL for NodeJS on GitHub a while ago. It uses node-mysql module and the interface is similar to ActiveRecord class of CodeIgniter (a PHP framework).

Would you recommand a specific DB to work with node.js ?

MongoDB or Redis , but it depends on your use case.

Also, is there a kind of framework like RoR that could provide ORM capabilities (like ActiveRecord) ?

Try to look at Express and mongoose .

Also check out a list of node.js modules .

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/

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. Something like noblerecord might work for you: https://github.com/noblesamurai/noblerecord

Check this:

Web application framework partial.js: https://github.com/petersirka/partial.js

  • Async web framework
  • Simple view system
  • Simple routing
  • Supports simple CouchDB provider
  • Supports simple ORM (via HTTP-RDBMS)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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