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.
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
.
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.