Basic demos demonstrating Twitter streaming APIs.
Install Node.js.
Clone GitHub repo:
git clone https://github.com/twitterdev/twitter-streaming-demos-node
Create a Twitter application.
Create a config.json
file using config.sample.json
as a template. Fill in your Twitter App API keys.
Install node module dependencies:
npm install
Run 1% sample demo:
node stream-sample.js
Run trending #hashtag demo:
node stream-hashtags.js
Run geo demo:
node stream-geo.js
Run client-side streaming demo:
Run index.html in a web server environment