This repository leverages PostgreSQL as a caching layer to reduce DevHub's RPC calls to a rate of 1 per second. The API is built using Rust's Rocket framework and deployed on Fly.io.
cargo run
or
cargo watch -q -c -w src/ -x 'run '
sqlx migrate add <name>
Creates a new file in migrations/<timestamp>-<name>.sql
. Add your database schema changes to
this new file.
sqlx migrate run
Compares the migration history of the running database against the migrations/
folder and runs
any scripts that are still pending.