Tokio Htmx Axum Tailwind Sqlx Askama stack.
A stack for making simple interactive web applications with just Rust and HTML templates that compiles into a single small-ish binary/docker image. Includes a trivial counter component as an example for full-stack interaction.
src/ui: viewssrc/domain.rs: domain typessrc/app_state.rs: database-domain interactiontemplates: askama templatesassetsandsrc/assets.rs: static assets need to be included in assets routertailwind: tailwind build files
- After modifying tailwind classes in templates run
npm run devto compile the styles
- Manage database migrations using
cargo sqlx migrate - After modifying queries run
cargo sqlx preparewith a validDATABASE_URLdefined in.envto update.sqlxquery cache