1. Start with generators
this is a fastest way to create application:
rw g crud post title content date:date published:boolean
2. Then create routes
in config/routes.js
and remove this file (public/index.html
)
exports.routes = function (map) { map.get('/', 'posts#index'); };
3. Design your database
in db/schema.js
and describe models in app/models
4. Keep you controllers thin
write tests, and good luck.
If you have any questions feel free to ask at RailwayJS Google Group