官术网_书友最值得收藏!

Creating a Full Server-Side Web App

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
主站蜘蛛池模板: 友谊县| 建阳市| 德钦县| 巴林右旗| 饶阳县| 若尔盖县| 独山县| 隆安县| 平山县| 开鲁县| 沅陵县| 页游| 横峰县| 双牌县| 吉首市| 阳春市| 永靖县| 延长县| 西贡区| 伊通| 大丰市| 上林县| 平舆县| 罗源县| 齐河县| 垦利县| 南城县| 博野县| 定陶县| 阜阳市| 太谷县| 济源市| 黎城县| 杨浦区| 金塔县| 佛坪县| 横峰县| 项城市| 临江市| 扎鲁特旗| 洪湖市|