SuperM Leptos is a client-side rendered (CSR) web application built with Leptos + Rust + WASM.
This project is part of the SuperM online shopping demo, focusing on clean UI logic, reactive state management, and modern Rust frontend architecture.
💡 This project is inspired by the SuperM Final Project from
https://react-tutorial.app/ by Jad Joubran.
You can explore the original React-based example here:
👉 Live demo (Leptos version):
https://superm-leptos.porrapat.com
This project has a companion implementation built with React, created to compare architecture, state management, and developer experience between React and Leptos (Rust + WASM).
-
SuperM – React version
👉 https://www.github.com/Porrapat/superm-react -
SuperM API – Axum version
👉 https://www.github.com/Porrapat/superm-api
- ⚡ Leptos CSR (WASM) – no SSR, no backend required
- 🧭 Client-side routing with
leptos_router - 🎨 Light / Dark theme toggle
- 🛒 Shopping cart state (reactive)
- 🔐 Mock login flow (for UI & UX testing)
- 🧠 Clean component & state design (no DOM manipulation)
- 🌍 Deployed with Nginx + Cloudflare
- Rust
- Leptos
- Leptos Router
- Trunk
- WebAssembly (WASM)
- Nginx (static hosting)
- Cloudflare (SSL & CDN)
superm-leptos/
├── src/
│ ├── components/
│ ├── api.rs
│ ├── models.rs
│ └── main.rs
├── assets/
├── index.html
├── Trunk.toml
└── Cargo.toml
- Rust (stable)
- Trunk
cargo install trunk
rustup target add wasm32-unknown-unknowntrunk serveOpen: 👉 http://localhost:3000
trunk build --releaseOutput will be generated in:
dist/
- Email:
[email protected] - Password: any non-empty value
Porrapat Petchdamrongskul Rust Backend & Frontend (Leptos) Developer
MIT License
