Skip to main content

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

cargo build
The resulting binary can be found under target/debug/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.