Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ttrelle/near-realtime-node
- Owner: ttrelle
- Created: 2013-08-15T05:49:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-18T07:05:51.000Z (almost 9 years ago)
- Last Synced: 2023-03-16T17:20:35.140Z (almost 2 years ago)
- Topics: mongodb, node-js, nodejs
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 37
- Watchers: 7
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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