1. Start with generators
25 |This is the fastest way to create an application:
26 |compound generate crud post title content date:date published:boolean27 |
2. Then describe a route
28 |in config/routes.js
and remove this file (public/index.html
)
exports.routes = function (map) { 30 | map.get('/', 'posts#index'); 31 | };32 |
3. Design your database
33 |in db/schema.js
and describe models in app/models/*
4. Keep your controllers thin!
35 |Write tests, and good luck.
If you have any questions feel free to ask at CompoundJS Google Group or #compoundjs on irc.freenode.net.
Track CompoundJS project state on our Trello board, vote for features, discuss. Help us to get better!
37 |