Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 660 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 660 Bytes

Blink

Getting started

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
}