8411  Reviews star_rate star_rate star_rate star_rate star_half

Web Apps with Rust and Leptos

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...

Read More
Duration 3 days
Course Code RUST-120
Available Formats Classroom

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.

Skills Gained

  • 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.

Course Details

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.

Outline

  • 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

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

Provided good amount of material and a great instructor to teach the material.

Great class I learned a great deal from the material. There would seem to a large amount that I need to learn about.

Very good company. I've done technical trainings at their facility in downtown Montreal in the past and I'Ve always appreciated them.

Easy to work with. Learning material pdfs were able to be printed out in color which was very nice to write on.

I registered a day before class and am happy that I received all the materials and links in time for the class. Thanks.