Is there a way to auto generate a Rest service in node.js like in rails?
I just want to expose my mongodb models as a Restfull service. I am now doing a lot of repetitive work with Mongoose and express-resource.
Is there a way to auto generate a Rest service in node.js like in
Share
Yep, it’s possible, follow this commands:
That’s it!
If you need to generate nested resource:
and modify config/routes.js:
Check this example app: https://github.com/anatoliychakkaev/railway-example-app
Welcome to railway: http://railwayjs.com