Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ralyodio/nodejs-stream
A nodejs backend for social network streams using a server sent event stream.
https://github.com/ralyodio/nodejs-stream
Last synced: 2 months ago
JSON representation
A nodejs backend for social network streams using a server sent event stream.
- Host: GitHub
- URL: https://github.com/ralyodio/nodejs-stream
- Owner: ralyodio
- Created: 2011-09-22T22:05:32.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-09-26T18:32:38.000Z (about 12 years ago)
- Last Synced: 2024-10-03T12:21:59.015Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 122 KB
- Stars: 45
- Watchers: 8
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NodeJS Stream
=============An example NodeJS application which uses an event-stream to push notifications to the client side using server side events. Firehose provided by Twitter, Meetup, and Digg.
Install
-------You may need to install some missing modules with npm. http://npmjs.org/
Once npm is installed, you can checkout the source and install the missing modules:
$ git clone https://github.com/chovy/nodejs-stream.git
$ cd ./nodejs-stream
$ npm install
$ node stream.jsBrowse to your localhost (ie: http://192.168.1.64:8080/) in your web browser.
Configuration
-------------Configure your twitter account username and password.
Method 1:
$ export TWITTER_USERNAME='your_username';
$ export TWITTER_PASSWORD='your_password';Method 2:
...or edit config.js and set your twitter username password.
config.twitter_username = process.env.TWITTER_USERNAME || 'my_username';
config.twitter_password = process.env.TWITTER_PASSWORD || 'my_password';config.js
---------Copy config.sample.js to config.js. Edit config.js and set your port number to listen on and IP address (you can use 'localhost' too).
config.port = 8080;
config.address = '192.168.1.64';