Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 726 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 726 Bytes

cfc-schedules-tweet

Send tweets ahead of Chelsea FC's match!

Feature(s)

  1. Send a tweet ahead of Chelsea FC's match:
    • one day before the match
    • one hour before the match

Example of the tweet

Day-1

day-1-reminder

Hour-1 reminder

hour-1-reminder

High-level flow

system-architecture

How to run locally

  1. Cron for fetching the matches
npm run match-fetcher
  1. Cron for reading the matches from redis
npm run match-reader
  1. Worker to subscribe to redis
npm run sub

Cron scheduling

  • match-fetcher -> runs every hour
  • match-reader -> runs every 10 minutes