Skip to content

eiriklv/maelstrom

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Maelstrom

Application to collect and distribute incoming messages from either browser (socket.io) or via HTTP API request. Live demo: http://weblistener.herokuapp.com

maelstrom

###Local development usage:

Make sure you have mongodb and redis installed (either by using a package manager or other install method)

Install dependencies:

  • brew install redis
  • brew install mongodb
  • npm install

Run dependencies

  • redis-server /usr/local/etc/redis.conf
  • mongod -f /usr/local/etc/mongod.conf

Spawn one or more processes of the application

  • node app PORT

Example:

Open a separate terminal window for each of the following commands

  • redis-server /usr/local/etc/redis.conf
  • mongod -f /usr/local/etc/mongod.conf
  • node app 3001
  • node app 3002

You now have two processes of the application running, which should be reachable on http://localhost:3001 and http://localhost:3002 respectively. If you were to load balance you would put nginx or varnish as a reverse proxy in front of these. All processes spawned will be connected through the custom redis rpc.

Unit tests:

  • To run tests, first install nodeunit (npm install nodeunit -g)
  • Start the depencencies (redis-server and mongod)
  • Run tests with npm test or nodeunit test

About

Application to collect and distribute incoming messages from either browser (socket.io) or via HTTP API request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published