Skip to content

acidarchive/acid

Repository files navigation

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

Build

cargo build

Run

cargo run

API: http://localhost:8000

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

Test

cargo test

Development

To ensure that git pull always rebases by default, run the following command:

git config --global pull.rebase true
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