Requires
- Rust
- Docker
- sqlx-cli
- PostgreSQL
- bunyan (optional)
Requires a recent Rust version (MSRV 1.56.1) and cargo.
Ideally installed via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install --version=0.5.7 sqlx-cli --no-default-features --features postgres
For nicer logs install bunyan:
cargo install bunyan
git clone git@github.com:ALU-Schumacher/AUDITOR.git
cd AUDITOR
./scripts/db_init.sh
cargo run
For nicer logs run AUDITOR like this:
cargo run | bunyan
cargo test
Running the test with output of logs:
TEST_LOG=true cargo test
Binaries used in production should be built in release mode:
cargo build --release
The binary can then be found in target/release/auditor
.
Make sure a database is up and running when starting AUDITOR.
AUDITOR is configured via the files in the configuration
directory.
TODO