Skip to content

Winning GopherCon 2021 Ably Hackathon entry

Notifications You must be signed in to change notification settings

echarrod/ably-hack

 
 

Repository files navigation

Go GitHub go.mod Go version of a Go module Report License

Ably Hackathon Entry: Ably Text


 █████  ██████  ██      ██    ██     ████████ ███████ ██   ██ ████████ 
██   ██ ██   ██ ██       ██  ██         ██    ██       ██ ██     ██    
███████ ██████  ██        ████          ██    █████     ███      ██    
██   ██ ██   ██ ██         ██           ██    ██       ██ ██     ██    
██   ██ ██████  ███████    ██           ██    ███████ ██   ██    ██    

About

This is an Ably GopherCon 2021 Hackathon entry based on Teletext.

Teletext was a protocol that allowed broadcasters to send text signals to televisions. This project is a similar concept, broadcasting tweet counts for a given hashtag in real time, via Ably's realtime API.

Visit the site at https://mighty-lake-60203.herokuapp.com to see the data in real time. The default display is for the keyword "google", due to this keyword reliably matching tweets every minute! (this search shows the equivalent data in Twitter).

The table automatically updates in real time: a new entry will be added at the top as each new minute passes, with data from the last two hours being shown.

AblyTextScreenshot.png

This repo contains the backend code, see https://github.com/Alttaf/ably-fe for the frontend

Dev process

We did have a search bar where you could update the displayed tweet counts dynamically on the page: searchBar.png This however caused us to encounter rate limits for both the Twitter and the Ably APIs! So we have reverted to the static keyword of "google" for the demo which is live.

Running locally

  1. Copy and paste .env.example file
  2. Rename to .env
  3. Fill in the specified values
  4. Run go run ably-text

Future work

This could further be expanded to:

  • Track sentiment analysis of hashtags (events) in real-time:
    • Keep track of the sentiment of certain events
    • Monitor multiple events, see which has the highest overall positive sentiment, and most negative sentiment

Documentation error

See DOCS.md for a documentation error

Contributors

  1. Alttaf Hussain
  2. Ed Harrod

About

Winning GopherCon 2021 Ably Hackathon entry

Topics

Resources

Stars

Watchers

Forks