hadamove / todo-maud-htmx

Server-side rendered todo app using htmx and Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🦀 htmx todos

Server-side rendered todo app that uses htmx for reactivity, Maud for templating, and tailwind for styling. The storage is setup using sqlx crate and SQLite for simplicity.

demo

Setup

Crate sqlx-cli is used to set up the database and run migrations. The following commands should be enough to set up the database:

cp .env.example .env
cargo install sqlx-cli
sqlx database create
sqlx migrate run --source db/migrations

After that, you can run the app using cargo run. The app should be available at http://localhost:8080.

Tailwind CSS IntelliSense

The configuration provided in tailwind.config.js should enhance your development experience in VS Code by making Tailwind CSS IntelliSense fully functional for *.rs template files.

About

Server-side rendered todo app using htmx and Rust


Languages

Language:Rust 98.6%Language:JavaScript 1.4%