CompoundJS

nodejs-frameworks

Resources

http://compoundjs.com/docs.html

How to install CompoundJS?

npm install -g compound

How to initialize our application?

compound init compound-angular-todo —coffee —tpl jade

The above command create our application (named "compound-angular-todo") and specifies that we need CoffeeScript (coffee) and Jade (a template engine).

How to install node-dev and other components required by CompoundJS?

npm install —save-dev node-dev
npm install

How to run our application?

We’re ready to run our server:

node-dev server.coffee

Does CompoundJS comes with generator?

Yes.

How to generate a controller?

compound g controller tasks

The above command generate a controller named tasks.

How to generate a model?

compound g model task description:string completed:boolean created_at:date

How to define a basic “tasks” routes in `config/routes.coffee`?

See the code at https://github.com/sagish/compound-angular-todo

Other unconfirmed things:

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License