Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Porrapat/superm-leptos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperM – Leptos (CSR)

Demo Screenshot

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


🤝 Companion Repository

This project has a companion implementation built with React, created to compare architecture, state management, and developer experience between React and Leptos (Rust + WASM).


✨ Features

  • 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

🛠 Tech Stack

  • Rust
  • Leptos
  • Leptos Router
  • Trunk
  • WebAssembly (WASM)
  • Nginx (static hosting)
  • Cloudflare (SSL & CDN)

📁 Project Structure

superm-leptos/
├── src/
│   ├── components/
│   ├── api.rs
│   ├── models.rs
│   └── main.rs
├── assets/
├── index.html
├── Trunk.toml
└── Cargo.toml

🚀 Getting Started

Prerequisites

  • Rust (stable)
  • Trunk
cargo install trunk
rustup target add wasm32-unknown-unknown

Run in Development Mode

trunk serve

Open: 👉 http://localhost:3000


Build for Production

trunk build --release

Output will be generated in:

dist/

🔐 Mock Login Behavior


👤 Author

Porrapat Petchdamrongskul Rust Backend & Frontend (Leptos) Developer


📄 License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published