Web Apps with Rust and Leptos


Course Number: RUST-120
Duration: 3 days (19.5 hours)
Format: Live, hands-on

Rust and Leptos Training Overview

Rust is an excellent language for building front-end web applications with WebAssembly. Leptos is a component-based front-end web framework similar to React, Angular, and Solid.js. In this Rust training course, attendees learn how to build front-end web applications with Rust and Leptos. Participants learn how to create components, pass data to components, and emit events from components. By the end of this course, students confidently build front-end web applications with Rust and Leptos.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand the principles of building a web application
  • Understand WebAssembly and how it works
  • Explore the differences between pure JS frameworks and Rust-based WebAssembly frameworks
  • Create a user interface with components
  • Incorporate best practices and principles of working with components
  • Run server functions from a client-side code
  • Publish and host a Leptos application

Prerequisites

This course assumes prior experience with Rust, HTML, and CSS.

Outline

Expand All | Collapse All

Introduction
WebAssembly with Leptos
  • What is Web Assembly?
  • What is Leptos?
  • How does Leptos compare to React, Angular, and Blazor?
Getting Started
  • Create a Leptos Project
  • Run and Debug a Leptos Project with Visual Studio Code
Components
  • What are Components?
  • Create a Component
  • Pass Data to a Component via Props
  • Dynamic Attributes
  • Passing Children to Components
Parent-Child Components
  • Communicate from Child to Parent via a Write Signal
  • Communicate from Child to Parent via a Callback
  • Use a Closure instead of a Callback
  • Use an Event Listener
  • Context
Component Render Logic
  • Display Data in a Component
  • Expressions
  • Conditionally Display Data in a Component
  • Render a Collection of Data
  • Error Handling
Component Event Handling
  • Handle Events in a Component
  • Event Modifiers
  • Event Propagation
Reactivity with Signals
  • What are Signals?
  • Four Signal Operations
  • Dependency between Signals
  • Effects
Router
  • What is Routing?
  • What is a Router?
  • Define Routes
  • Nested Routes
  • Parameters and Queries
  • Links and Forms
Working with the Server
  • Calling Server Functions
  • Extractors
  • Responses
  • Redirects
Forms
  • What is an HTML Form?
  • Collecting Data from Users
  • Form Validation
  • Processing Form Submissions
  • Action Forms
Metadata
Styling
Server-Side Rendering
  • What is Server-Side Rendering?
  • Using Cargo-Leptos
  • Life Cycle of Loading a Leptos Page
  • Rendering Modes
  • Hydration
Testing
  • Unit Testing Components
  • E2E Testing
Deployment
  • Build a Leptos Application
  • Publish a Leptos Application
  • Hosting Considerations
  • Dockerize a Full-Stack Leptos Application
  • Optimizing WASM Size
Conclusion

Training Materials

All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub through documentation and extensive code samples.

Software Requirements

  • A free, personal GitHub account to access the courseware
  • Permission to install Rust and Visual Studio Code on their computers
  • Permission to install Rust Crates and Visual Studio Extensions

If students cannot configure a local environment, a cloud-based environment can be provided.



Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan