Skip to content

martinostvik/TwitterStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published