You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
+++ title = "Set up ui/Trunk.toml and ui/index.html — build configuration and Wasm entry point" priority = 8 status = "todo" ticket_type = "task" dependencies = ["c3503b", "a9534d"] +++
The `quotesdb` UI is a Yew (Rust → Wasm) single-page app compiled by Trunk and hosted on Cloudflare Pages. It communicates with the backend API via `fetch` calls. Source lives in `src/bin/ui/`. Run with `trunk serve` for local development. Create `Trunk.toml` and `index.html` in the `quotesdb/` root (not `src/bin/ui/`): 1. `Trunk.toml` must specify `--bin ui` so Trunk compiles the `ui` binary, not the default `api` binary 2. `index.html` is the Trunk HTML entry point — it should `` to compiled CSS and include the Wasm loader script tagVerify trunk serve starts successfully.
` mount point for the Yew app.
From the `quotesdb/` directory:
trunk build
`chore(quotesdb): set up Trunk.toml and index.html for UI build`