Skip to content

mukundbhudia/wembley-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wembley-events

GitHub tag (latest by date) Release Rust Trigger calendar generation on a CRON Schedule

Know when Wembley Stadium events are happening ahead of time. This project generates a calendar file on all the upcoming events at Wembley Stadium.

  • Don't get caught out in the traffic.
  • Don't struggle with parking.
  • Don't waste precious time.

The calendar is updated regularly and is always available to subscribe to/download here: https://mukundbhudia.github.io/wembley-events/wembley-events.ics.

In addition to the calendar, this project can also generate a JSON file containing the events available to download here: https://mukundbhudia.github.io/wembley-events/wembley-events.json.

The wembley-events-web project uses the events generated using this project to provide useful a frontend for the calendar.

GitHub Actions runs this project and uploads the calendar file to GitHub pages on a twice daily basis.

Feel free to subscribe to the calendar using your favourite calendar app. The file output conforms to the iCalendar specification.

Pre-requisites

Development

  • Copy the .env.example file to .env and edit the values to suit.
  • Within the repo directory run cargo r.
    • This will generate a calendar file to the path defined in CALENDAR_SAVE_PATH.
    • Setting a path for CALENDAR_JSON_SAVE_PATH will create a JSON file of events with the same name.

Production

  • Copy the .env.example file to .env and edit the values to suit.
  • To make a production build, within the repo directory run cargo b --release.
  • To run the release build, within the project directory run target/release/wembley-events just as in development.

Testing

  • To run all your tests, within the repo directory run cargo t. This will run all tests in the /tests directory.
  • To run ignored tests, within the repo directory run cargo t -- --ignored.

Resources & Thanks