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

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
主站蜘蛛池模板: 咸阳市| 双牌县| 乐至县| 平泉县| 河西区| 七台河市| 东城区| 尖扎县| 平南县| 巨鹿县| 合水县| 彩票| 丰城市| 白河县| 山阳县| 黎城县| 武邑县| 紫阳县| 比如县| 高碑店市| 张家口市| 灵丘县| 鲁山县| 沈阳市| 宣汉县| 长沙市| 应城市| 宜丰县| 平武县| 福安市| 汉源县| 昆山市| 河东区| 孟州市| 咸宁市| 陆良县| 望奎县| 普陀区| 阿鲁科尔沁旗| 冕宁县| 靖远县|