Building the Backend
Clone the Repository
git clone git@github.com:SirBubbls/trajectory-trace.git
cd trajectory-trace
The backend is located in the trajectory-trace
directory of the repository.
cd trajectory-trace
# Cargo.lock
# Cargo.toml
# config.toml
# diesel.toml
# Dockerfile
# migrations/
# queries/
# src/
# target/
Building
- development
- release
cargo build
target/debug/trajectory-trace
cargo build --release
target/release/trajectory-trace
Running
You can run the application by executing the previously compiled binary.
# development build
./target/debug/trajectory-trace
# release build
./target/release/trajectory-trace
tip
For building and then running the binary in one step, one can use the cargo run [--release]
command.