Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.1 KB

README.md

File metadata and controls

29 lines (15 loc) · 1.1 KB

Cereboard

This simple example shows how one would begin to construct a discussion forum with Cerebellum.

This example uses a newly added feature that enables us to define which data to load directly in view components.

Categories, Board & Thread components declare their data sources with static fetch method.

This enables us to keep our routes clear of store.fetch calls and you can instantly see what data the components use. Components are still also fully reusable in other contexts.

Check out routes.js, isomorphic routing can't get much simpler :)

Initial steps

Install dependencies:

npm install

Build:

npm run build

Start (& reload server with nodemon on changes):

npm start

Watch for changes (and rebuild public/js/app.js with source maps):

npm run watch