Q: What's it like making a web app with Leptos? A: Pretty freaking sweet ✨ 😎 🚀
- Install Rust
- Install Just task runner
brew install just
- Run the following to setup wasm dev environment on your local machine
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown
cargo install trunk
Make sure everything above is done first ☝️.
To build and run locally: just
or just default
.
Check out justfile
for common tasks. Tasks are (currently) use Trunk WASM Web Application Bundler.
# this will generate a full leptos instance for ssr, ssg, and csr.
cargo install cargo-leptos
cargo leptos new --git https://github.com/leptos-rs/start -n project-name
cargo leptos watch