- The twitter stream is infinite.
- The server side should process the data all the time.
- The processed data should be available all the time to be requested by the the client side.
- The client side should be updated every few seconds.
- The client side should be updated manually.
- Using the libraries pump,ndjson,through2,hyperquest to process the infinite stram.
- Using a small collections that keep top-ten words/names/hashtags with their counts to be available all the time by the client request .
- The client side sends an xmlhttprequest by the axios library to fetch data every five seconds.
- The client side has buttons that send an xmlhttprequests by the axios library to fetch each data collection.
I would add an history graph that would show the history of average tweets per second.
As I see it, all the requested parts had been handled,including the bonus.
- Get enter to twitter-analyst/client .
- Run in terminal/bash and run:
npm install - Run in terminal/bash and run:
npm run start
- Get enter to twitter-analyst/server.
- Run in terminal/bash and run:
npm install - Run in terminal/bash and run:
npm run start