0xpr03 / vta_backend

Sync backend for VTA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VTA Sync Backend

Sync backend for VTA

Building

Requirements:

Release build:

cargo build --release

Final files are inside target/release

Running

Development:
cargo run

Production: Use the release build or run cargo run --release

Configuration

Copy config/default.toml to config/config.toml and edit it.

Development setup

The following environment variables have to be set up for vscode:

  • mariadb database

Example in windows terminal:

$env:DATABASE_URL="mysql://root@localhost/vta_sync"
& "C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code\Visual Studio Code.lnk"

Debugging tests

Set the rust log via $Env:RUST_LOG='vta_sync_backend=trace' or RUST_LOG=vta_sync_backend=trace and then run the specific test. trace-logging in tests can be enabled using #[test_log::test(actix_rt::test)] instead of #[actix_rt::test] or tokio::test.

About

Sync backend for VTA

License:GNU Affero General Public License v3.0


Languages

Language:Rust 92.4%Language:Python 7.6%