Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

syle.studio

Photography portfolio + tunneled CRM for a studio client. Two independent sites, one Rust workspace.

Path What Runtime / build
types/ Shared serde DTOs (API ⇄ admin) lib, host + wasm
core/ Domain + pure-Rust image pipeline lib
api/ Axum API (public read + CRM write) native binary (VPS)
admin/ Leptos CSR SPA — admin.syle.studio wasm32, built w/ trunk
web/ Astro public site — syle.studio Node, SSG/ISR

Develop

Build prerequisites: a Rust stable toolchain and nasm (assembler used by the AVIF encoder; build-time only).

cargo test                  # host workspace
cargo check                 # api + core + types (host)
trunk serve --config admin/Trunk.toml   # CRM SPA (wasm)
pnpm --dir web dev          # public site

admin/ is excluded from default-members: it targets wasm32 and is built with trunk, so host cargo commands stay fast and green.

DB-backed tests TRUNCATE tables: they use TEST_DATABASE_URL (a dedicated database, e.g. syle_test) and only fall back to DATABASE_URL if it is unset. Keep them pointed at separate databases so cargo test never wipes development data.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages