auto generate Rest service in node.js
You can also use a library I developed if Railway is too bulky for your needs:
https://github.com/enyo/mongo-rest
It's a simple library, well tested, that just provides a REST interface for your mongoose models.
Yep, it's possible, follow this commands:
npm install railwayrailway init rest-app && cd rest-app && npm installrailway generate scaffold resource property1 property2railway server 3000
That's it!If you need to generate nested resource:
railway generate resource.nestedresource propertyForNestedResource
and modify config/routes.js:
map.resources('resource', function (res) { res.resources('nestedresources');});
Check this example app: https://github.com/anatoliychakkaev/railway-example-app
Welcome to railway: http://railwayjs.com