Twitter Streamer is a web based application that streams tweets in real time.
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!
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.
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
I am using eslint with airbnb formatting rules. Run this command to run the linter.
cd server
npm run lint