Skip to content
forked from zendesk/radar

High level API and backend for writing web apps that use push messaging

Notifications You must be signed in to change notification settings

simudream/radar-1

 
 

Repository files navigation

Radar

High level API and backend for writing web apps that use real-time information.

Documentation

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

Build Status

Installation

###Installing from scratch:

###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 server.js with the contents:
  var http = require('http');
  var Radar = require('radar').server;

  var httpServer = http.createServer(function(req, res) {
    res.end('Nothing here.');
  });

  // Radar server
  var radar = new Radar();
  radar.attach(httpServer, { redis_host: 'localhost', redis_port: 6379 });

  httpServer.listen(8000);
  • node server.js

Running tests

By default, when running npm test, tests are ran only against sentinel.

If you want to run against redis directly, you should execute: npm run test-redis or npm run test-full to run against redis and sentinel (longer).

How to contribute

js-standard-style

Copyright and License

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

About

High level API and backend for writing web apps that use push messaging

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.5%
  • Other 1.5%