There is a simply Q&A web application, create by Leptos with Rust
You should install Rust toolchains and up-to-date
Leptos CSR development tools:
- "Trunk" for running leptos CSR site
cargo install trunk
- Add
wasm-unknown-unknown
target for that Rust can compile Rust code to WebAssembly to run in browser
rustup target add wasm32-unknown-unknown
- Make sure you have added 'npm' cause we used
Tailwindcss
andDaisyUI
Now run
npm i
from the root of the project, and run
trunk serve --open
from the root of the project directory, and you will see Trunk
open the website in you default browser
Run
trunk build --release
will build all file your need in dist directory at root