Skip to content

toedirs/toedirs

Tests

Toedi fitness tracking platform

Toedi is a self-hosted fitness tracking and workout planning app.

See the documentation for more details.

metrics calendar

Running the project

docker compose -f docker-compose.yml up

Developing locally

Installing dependencies

rustup toolchain install nightly --allow-downgrade
rustup target add wasm32-unknown-unknown
cargo install cargo-leptos

Running for local development

docker compose -f docker-compose.dev.yml up &
export DATABASE_URL=postgres:https://toedi:toedi@localhost::5432/toedi
cargo leptos watch

Creating prepared sqlx queries

This is needed to build when there is not database available, as sqlx does compile time checking against a database

cargo sqlx prepare -- --all-targets --all-features --release

Compiling for Release

cargo leptos build --release

Will generate your server binary in target/server/release and your site package in target/site