acidarchive.com backend
# archlinux
sudo pacman -S lld clang postgresql
# macos
brew install michaeleisel/zld/zld
cp .env.example .env
./scripts/init_db.sh
cargo build
cargo run
Docs: http://localhost:8000/docs/api
cargo test
To ensure that git pull always rebases by default, run the following command:
git config --global pull.rebase true
rustup component add clippy rustfmt
cargo install --version="~0.8.2" sqlx-cli --no-default-features --features rustls,postgres
cargo sqlx prepare -- --lib
cargo sqlx prepare -- --tests