Skip to content

palfrey/dawn

Repository files navigation

Dawn

CI

Named both for the NASA Dawn mission and that it turned up when I did a thesaurus search for Countdown. It's a replacement for the previously excellent TfL Countdown site, which they got rid of. I was annoyed by this, until they turned out to have done a lot of work to their API, so I could fix this.

Live version

https://dawn.tevp.net/

Local Setup

  1. Install Rust
  2. cargo run
  3. Goto http://localhost:8000

Heroku Setup

  1. Make new Heroku app
  2. heroku git:remote --app dawn-stops (replacing "dawn-stops" with the name of your app)
  3. heroku buildpacks:set https://github.com/Hoverbear/heroku-buildpack-rust.git
  4. heroku config:set RUST_VERSION=1.62.1 TZ="Europe/London" RUST_BACKTRACE=1
  5. git push heroku master

AWS Lambda Setup

Currently disabled, as actix_lambda needs a bunch of work.

This uses actix_lambda and you should follow the setup instructions over there to make this work there Only change needed is doing the build as cargo build --release --target x86_64-unknown-linux-musl --no-default-features --features lambda so we don't enable mocking on lambda as reqwest_mock needs a version of reqwest that still uses OpenSSL all the time.

License

AGPL3