dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 376 forks source link

Framework using node-orm2 #514

Closed DamonDeville closed 10 years ago

DamonDeville commented 10 years ago

Is there a server-side MV* framework using node-orm2 as models? But which also features routers, controllers, view templates, authentication services, rest-api and scaffold generators, i18n, test runners etc.

Node-orme seems fairly comprehensive and mature, yet the server-side JS MV* frameworks that I have found (Sails.js, Compound.js, Geddy) all have their own ORM instead of reusing node-orm2. I wonder why.

Sorry if this question is not appropriate for this forum, but since I coundn't find a google groupe on node-orm, I felt I could only ask here, even though this is not a bug report and not even technical problem.

dxg commented 10 years ago

There isn't as far as I'm aware of.

I use it with my own hand-made express powered framework as I didn't like any of the choices out there. Either they insisted on copying rails verbatim (including a snake_case API) or had other strange peculiarities.

mike-zenith commented 10 years ago

I'm currently using kraken.js with orm2, orm-migrate and it works fine. Kinda easy to write a middleware that automatically registers your models to the request object, so you can reach them from your controllers.

Kraken is bulit on top express, since its 1.0 version (i guess) it is 'just' a middleware that adds certain functionality to the parent framework.

fopsdev commented 10 years ago

hi @mike-zenith would you dare to share some code how you integrated orm2 into kraken? it's because i'm planning to develop a fun lets say "postgres, orm2, kraken" - project to educate myself