This app shows the latest tweets of Donald Trump and Hilary Clinton, a button is available to navigate between the two views.
Check this demo
Install the dependencies: npm i
Build: npm build
Before running, you need to set those environment variables (You can get them after creating a developer account)
TWITTER_API_KEY
TWITTER_API_SECRET_KEY
TWITTER_TOKEN_KEY
TWITTER_TOKEN_SECRET
Run: npm run
Go to: http://localhost:3000
-
Add real time update for the tweets:
- Using the stream api with socket.io
- Add a pulling mechanism to refresh the data after x seconds
-
Add tests