https://github.com/nwrenger/maud-magic-rs
Website, Templating, HTMX and a light-magic database infrastructure
https://github.com/nwrenger/maud-magic-rs
database htmx in-memory maud website
Last synced: about 1 month ago
JSON representation
Website, Templating, HTMX and a light-magic database infrastructure
- Host: GitHub
- URL: https://github.com/nwrenger/maud-magic-rs
- Owner: nwrenger
- License: mit
- Created: 2024-06-07T21:39:07.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-12-21T20:08:41.000Z (5 months ago)
- Last Synced: 2025-04-15T19:54:11.364Z (about 1 month ago)
- Topics: database, htmx, in-memory, maud, website
- Language: Rust
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# maud-magic-rs
maud-magic-rs is a lightweight example of a Website utilizing `light-magic` as its database and powered by the `HTMX` library for seamless server-client interactions.
## Features
- **Website:** Built with `daisy-ui`. No extra js required, it just uses HTMX!
- **light-magic:** Utilizes an `in-memory` database for data storage, providing a simple and self-contained solution.
- **HTMX Integration:** Enhances server-client interactions through HTMX, allowing for dynamic updates and a smoother user experience.## Usage
- **Install Perquisites:** You have to have [rust](https://www.rust-lang.org/), [air](https://github.com/cosmtrek/air) and [bun](https://bun.sh/) installed.
- **Install Dependencies:** Install dependencies of bun (in [content](/assets/static/content/)).
- **Run Dev:** Finally, You have to use the `air` command, it's pre-configured in the [air-toml](.air.toml).
- **Build:** To build the project you have to run the following command, **make sure to include in your export the static files**:
```sh
cd ./assets/static/content && bunx tailwindcss -i ./../../input.css -o ./dist/output.css && cd ./../../../ && cargo build -r
```