radar

Realtime apps with a high level API based on engine.io

npm install radar
3 downloads in the last day
10 downloads in the last week
149 downloads in the last month

Documentation

See http://radar.zendesk.com/ for detailed documentation.

Build Status

Installation

Installing from scratch:

  • Install and start Redis
  • Install a 0.10.x or better branch of Node, look in http://nodejs.org/dist/
  • git clone git@github.com:zendesk/radar.git
  • npm install
  • npm start

Installing from NPM:

  • Install and start redis
  • Install a 0.10.x or better branch of Node, look in http://nodejs.org/dist/
  • npm init
  • npm install --save radar
  • create a file called index.js with the contents:

    var http = require('http');
    var Radar = require('radar').server;
    var Api = require('radar').api;
    
    var httpServer = http.createServer(function(req, res) {
      res.end('Nothing here.');
    });
    
    // Radar API
    Api.attach(httpServer);
    
    // Radar server
    var radar = new Radar();
    radar.attach(httpServer, { redis_host: 'localhost', redis_port: 6379 });
    
    httpServer.listen(8000);
    
  • node index.js

Copyright 2012, Zendesk Inc. Licensed under the Apache License Version 2.0, http://www.apache.org/licenses/LICENSE-2.0

npm loves you