slimovic / politicians-tweets

To show the recent tweet of politicians

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This app shows the latest tweets of Donald Trump and Hilary Clinton, a button is available to navigate between the two views.

DEMO

Check this demo

INSTALLATION

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

TODO

  • Add real time update for the tweets:

    1. Using the stream api with socket.io
    2. Add a pulling mechanism to refresh the data after x seconds
  • Add tests

About

To show the recent tweet of politicians


Languages

Language:TypeScript 90.3%Language:JavaScript 7.4%Language:SCSS 2.3%