Skip to content

palfrey/dawn

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Dawn

CI MSRV: 1.40.0

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 recently got rid of. I was annoyed by this, until they turned out to have done a lot of work to their API recently, 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.21.0 TZ="Europe/London" RUST_BACKTRACE=1
  5. git push heroku master

AWS Lambda Setup

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