npm install -g nodemon
npm install
nodemon app.js port=3000
If you want to run multiple instances of the socket.io server, you'll need to do the following:
If you don't have redis installed, install it:
brew install redis
redis-server
Then, start the different node servers with a different port number for each:
nodemon app.js port=3000 redis=localhost:6379
Open browser to localhost:3000
Note: Vagrant coming soon
##API
###POST /events
Takes JSON of the form:
{
"api_key": 'valid api key',
"room": "room_name",
"type": "message_type",
"data": MESSAGE_DATA_OBJECT
}