Perhaps follow these commands:
npm install railway
railway init rest-app && cd rest-app && npm install
railway generate scaffold resource property1 property2
railway server 3000
What is it! If you need to create a nested resource:
railway generate resource.nestedresource propertyForNestedResource
and change config / routes.js:
map.resources('resource', function (res) {
res.resources('nestedresources');
});
This example shows the application: https://github.com/anatoliychakkaev/railway-example-app
Welcome to the railway: http://railwayjs.com
source
share