- Install
- Node.js:
brew install node
on OS X - Install dependencies:
npm install
in application directory
- Node.js:
- Run
PORT=3000 AMQP_URI=amqp://localhost ./server.js
- The backend is a Node.js express server using JSON over AJAX and WebSockets.
- The frontend is a single page application using ReactJS, built with the Brunch javascript build tool.
- Install (if you don't have them):
- Run:
brunch watch --server
— watches the project with continuous rebuild. This will also launch HTTP server with pushState.brunch build --production
— builds minified project for production
- Learn:
public/
dir is fully auto-generated and served by HTTP server. Write your code inapp/
dir.- Place static files you want to be copied from
app/assets/
topublic/
. - Brunch site