2 releases

new 0.0.1 Nov 30, 2024

#309 in #com

MIT license

78KB
2K SLoC

acidarchive.com api

acidarchive.com backend

Pre-requisites

# archlinux 
sudo pacman -S lld clang postgresql
# macos
brew install michaeleisel/zld/zld
cp .env.example .env
./scripts/init_db.sh
./scripts/init_redis.sh

Build

cargo build

Run

cargo run

API: http://localhost:8000

Docs: http://localhost:8000/docs/api

Test

cargo test

Development

./scripts/setup_hooks.sh
rustup component add clippy rustfmt

sqlx-cli

cargo install --version="~0.8.2" sqlx-cli --no-default-features --features rustls,postgres
cargo sqlx prepare -- --lib
cargo sqlx prepare -- --tests

Dependencies

~72MB
~1.5M SLoC