In the previous chapter, we saw how to build a REST web service using the Actix web framework. A REST web service must be used by a client app in order for it to be useful to us.
In this chapter, we'll see how to build a very small but complete web app using the Actix web framework. We will use HTML code to be formatted in a web browser, JavaScript code to be executed in the same web browser, and the Tera crate to perform HTML templating. This is useful for embedding dynamic data inside HTML pages.
The following topics will be covered in this chapter:
- Understanding what a classical web app is and what its HTML templates are
- Using the Tera template engine with Rust and Actix web
- Using Actix web to handle requests of web pages
- Handling authentication and authorization in web pages