Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 969 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 969 Bytes

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