Tweet streaming demo using Twitter streaming API
-
Clone the project
-
npm install
-
Create
.env
file and open it. -
Copy your Twitter app keys from developer account.
Once you've create new developer account and made an app, you can see the Keys and Tokens, copy the api keys like below.
CONSUMER_KEY=<Consumer Key>
CONSUMER_SECRET=<Consumer Secret>
ACCESS_TOKEN=<Access Token>
ACCESS_TOKEN_SECRET=<Acess Token Secret>
-
node index.js
-
Open
public/index.html