Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.58 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.58 KB

Twitter Streamer

Twitter Streamer is a web based application that streams tweets in real time.

Getting started

docker-compose up

This will start up both the Express server and the React client. Head over to http://localhost:3000 to start seing live tweets!

Changing the search term

You can make a POST request to http://localhost:3001/admin/updateSearchTerm to change what tweets get's streamed.

curl --location --request POST 'http://localhost:3001/admin/updateSearchTerm' \
--header 'Content-Type: application/json' \
--data-raw '{
    "searchTerm": "js"
}'

There is a stub for authentication on this endpoint, for now it is open for anyone.

Running tests

You can run tests with npm (If you don't have npm installed locally you can do it from within the docker container).

cd server
npm run test

Linting

I am using eslint with airbnb formatting rules. Run this command to run the linter.

cd server
npm run lint

Tech stack