7 Introducing server-side web apps in Rust

This chapter covers

  • Serving a static web page with Actix
  • Rendering a dynamic web page with Actix and Tera
  • Adding user input with forms
  • Displaying a list with templates
  • Writing and running client-side tests
  • Connecting to the backend web service

In chapters 3 to 6 of the book, we built the tutor web service from scratch using Rust and the Actix Web framework. In this section, we’ll focus on learning the basics of building a web application in Rust. It may sound strange to use a system programming language to create a web application, but that’s the power of Rust. It can straddle the worlds of system and application programming with ease.

In this chapter, you will be introduced to concepts and tools ...

Get Rust Servers, Services, and Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.