* fix: redis connect * chore: add Readme and support no tls * chore: cache docker build * chore: update * fix: fix postgres and redis connection * chore: update port * ci: lint |
||
|---|---|---|
| .cargo | ||
| .github | ||
| build | ||
| cert | ||
| configuration | ||
| crates | ||
| migrations | ||
| src | ||
| tests/api | ||
| .dockerignore | ||
| .env | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Dockerfile | ||
| Makefile | ||
| README.md | ||
| docker-compose.yml | ||
| sqlx-data.json | ||
README.md
Pre-requisites
You'll need to install:
Here are the Os-specific requirements:
Windows
cargo install -f cargo-binutils
rustup component add llvm-tools-preview
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres
Linux
# Ubuntu
sudo apt-get install lld clang libssl-dev postgresql-client
# Arch
sudo pacman -S lld clang postgresql
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres
MacOS
brew install michaeleisel/zld/zld
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres
How to build
Run the init_db.sh to create a Postgres database container in Docker:
./scripts/init_db.sh
Run the init_redis.sh to create a Redis container in Docker:
./scripts/init_redis.sh
Build the project:
cargo build
or you can try to run the tests in your local machine:
cargo test