Outline updated November 2026
Full-Stack Web Apps with Rust and Leptos
Class Duration
21 hours of live training delivered over 3-5 days to accommodate your scheduling needs.
Student Prerequisites
- Working Rust experience equivalent to Rust Essentials
- Familiarity with HTML, CSS, and a modern frontend framework (React, Vue, Svelte, or similar)
- Comfort with the command line and Git
Target Audience
Engineers who want one language, Rust, in the browser and on the server. It fits teams that already run Rust on the backend and want to share types and validation with the frontend. New to Rust? Start with Rust Essentials. JavaScript and TypeScript teams can start with Rust for JavaScript and TypeScript Programmers instead.
Description
Leptos is a full-stack Rust web framework built on fine-grained reactivity, similar in spirit to SolidJS. This course teaches students to build and deploy Leptos applications. It covers components, signals, routing, server functions, forms, and SSR with hydration. Students also shrink WebAssembly bundles, containerize the app, and use AI assistants with the compiler as the check.
Learning Outcomes
- Build a full-stack web application with Leptos.
- Manage state with signals, effects, and memos.
- Compose components with props, children, and event handlers.
- Share types between client and server with server functions.
- Build nested and dynamic routes with the Leptos router.
- Choose between CSR, SSR, and SSR with hydration.
- Build validated forms with progressive enhancement.
- Shrink WebAssembly bundles and ship a container image.
- Review AI-generated Leptos code for reactivity and trust-boundary bugs.
Training Materials
All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub in the form of documentation and extensive code samples.
Software Requirements
A free GitHub account, the current stable Rust toolchain via rustup (2024 edition), with examples on Leptos 0.8 and notes on the 0.9 release candidate, Visual Studio Code or another supported editor with the rust-analyzer extension, cargo-leptos, Node.js 22+ for tooling, Docker for the local PostgreSQL instance (if the database module is included), and an AI coding assistant of choice (GitHub Copilot, Cursor, or Claude Code). A cloud-based environment can be provided if local installation is restricted.
Training Topics
Leptos Overview
- WebAssembly today
- What Leptos is
- Leptos releases and upgrades
- Leptos vs. React, SolidJS, Yew, and Dioxus
- Fine-grained reactivity vs. virtual DOM
Getting Started
- Creating a project with
cargo-leptos - Project layout
- Running and debugging
- Hot reload
Components
- Components in Leptos
- The
#[component]macro - Props and dynamic attributes
- Children and the
Childrentype - Component composition
Parent-Child Communication
- Write signals and callbacks
- Closures vs. callbacks
- Event listeners
- Context
Render Logic
- Embedding expressions
- Conditional rendering
<For>and stable keys- Error handling with
<ErrorBoundary> <Suspense>and<Transition>
Event Handling
- DOM events
- Typed event targets
- Event delegation and propagation
- Form events vs. action forms
Reactivity with Signals
- What signals are
- Reading with
getandwith - Writing with
setandupdate - Derived signals
- Effects and dependency tracking
- Memos
- Common reactivity pitfalls
Routing
- The Leptos router
- Nested routes
- Path and query parameters
- Links and forms
- The islands router
- Route data with resources
Server Functions and Shared Types
- What server functions are
- Defining them with
#[server] - Shared types
- Extractors and responses
- Redirects, cookies, and headers
Forms
- Plain HTML forms
<ActionForm>and progressive enhancement- Form validation
- File uploads
Metadata and Styling
- Titles and meta tags with
leptos_meta - Scoped CSS, Tailwind, and CSS modules
- Asset pipelines and content hashing
SSR, CSR, and Hydration
- What SSR buys you
- CSR tradeoffs
- How Leptos hydrates
- Islands and partial hydration
- SSR modes per route
Database and Backend Integration
- sqlx and PostgreSQL in server functions
- Actix-web or Axum integration
- WebSockets through server functions
- Authentication
Testing
- Unit testing components
- Browser testing with Playwright
- Snapshot testing
Deployment
- Production builds
- Shrinking WASM with
wasm-opt - Release-profile settings
- Feature flags and binary size
- Code splitting and lazy routes
- Multi-stage Docker builds
- Hosting options
AI-Assisted Leptos Development
- AI for components and routes
- Reactivity and hydration bugs in AI code
- Prompts for component design
- Catching AI mistakes with the compiler
- Trust boundaries in AI-written server functions
- AI-assisted refactors and code review