https://github.com/hadamove/todo-maud-htmx
Server-side rendered todo app using htmx and Rust
https://github.com/hadamove/todo-maud-htmx
actix-web htmx maud rust sqlx tailwindcss
Last synced: about 1 month ago
JSON representation
Server-side rendered todo app using htmx and Rust
- Host: GitHub
- URL: https://github.com/hadamove/todo-maud-htmx
- Owner: hadamove
- Created: 2023-08-21T17:05:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-04T13:00:11.000Z (over 1 year ago)
- Last Synced: 2024-02-19T21:46:03.913Z (about 1 year ago)
- Topics: actix-web, htmx, maud, rust, sqlx, tailwindcss
- Language: Rust
- Homepage:
- Size: 179 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🦀 htmx todos
Server-side rendered todo app that uses [`htmx`](https://htmx.org) for reactivity, [`Maud`](https://maud.lambda.xyz) for templating, and tailwind for styling. The storage is setup using [`sqlx`](https://github.com/launchbadge/sqlx) crate and SQLite for simplicity.

## 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:
```bash
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](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) fully functional for `*.rs` template files.