Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ttrelle/near-realtime-node

A showcase for a near-realtime system
https://github.com/ttrelle/near-realtime-node

mongodb node-js nodejs

Last synced: about 2 months ago
JSON representation

A showcase for a near-realtime system

Awesome Lists containing this project

README

        

# Near-Realtime Showcase ##

A showcase for a very simple near-realtime system including visualization and a NoSQL datastore. For a detailed explanation, please have a look at my blog post ["Near-Realtime Analytics w/ MongoDB, Node.js & SmoothieCharts"](https://blog.codecentric.de/en/2014/01/realtime-analytics-mongodb-nodejs-smoothiecharts/).

![Near realtime visualization w/ Smoothie Charts](realtime-mongodb-chart.png)

## Usage ##
Set up the node.js project:

sudo npm install

Set up a MongoDB replica set with one node running on the default port 27017.

To start the node server, run

node main.js

After that, open a web browser at this URL:

http://localhost:8080/

You won't see any graphs unless you insert some data into MongoDB. To do this, open another shell and type:

cd mongo
mongo 02_stream_data.js