Messing around with Node.js, Socket.IO and Dust.js in order to organize office coffee brewing
- Node.js - server side rest
- Dust.js - client side js templating
- Socket.io - server and client websocket impl
- Install node and add to your path
- Setup proxy for npm (optional):
npm config set proxy http://HOST:PORT
and npm config set https-proxy http://HOST:PORT
- Install dependencies listed in package.json
npm install -d
- Compile the dust templates:
npm run dustc
- If you are developing the dust templates then you can leave the compiler in watch mode
npm run dustw
NOTE: on Ubuntu you need to type "nodjs" instead of "node"
mkdir -p public/js/compiled
node app.js
open your web browser at http://HOST:7777/
To change the port just set the PORT environment variable