相關主題
商品描述
Learn the basics of web development using Axum, the popular Rust-based web development framework, and build a chatting app which is ready to deploy. This book will be an invaluable introduction to Axum and how to use it develop the backend and server along with a wide range of associated tools like WebSocket and SeaORM.
The book begins with an introduction to the Rust programming language and server development and then goes on to explore the basics of Axum. This is followed by detailed instructions on how to set up a server using Axum. The book then guides you through connecting to a database using SeaORM. After you have connected your backend to a database, you will learn about Tower Middleware and how to use it to create a JWT authentication layer for your application. The next portion of the book will instruct you in the use of WebSocket and how to implement concurrent WebSocket connections. The final chapter ties all the theories and examples of the preceding chapters together and helps you in building the capstone project of your own chatting app, putting all the skills you have learnt through the book to the test.
This book is the book you will need if you want to get started on Axum. It is packed full of useful tips and step-by-step instructions. In addition to the theoretical information, the chapters are supplemented by real-life examples of the use of the concepts as well as quizzes that you can use to test your understanding. By the end of the book you will not only have gained competence in Axum, but you will have gained confidence in using it for actual projects.
You Will Learn To:
- Use Axum to create the backend server for your own applications
- How to use SeaORM, which is also written in Rust, and Postgres for database layer of the server application
- Implement Axum in real-world scenarios
This Book is For
Beginners with a basic grasp of Rust or intermediate web developers interested in expanding their knowledge of Axum
商品描述(中文翻譯)
學習使用 Axum 這個流行的基於 Rust 的網頁開發框架的基本知識,並建立一個準備部署的聊天應用程式。本書將是對 Axum 的寶貴介紹,以及如何使用它來開發後端和伺服器,並搭配一系列相關工具,如 WebSocket 和 SeaORM。
本書首先介紹 Rust 程式語言和伺服器開發,然後探討 Axum 的基本概念。接下來提供詳細的指導,教你如何使用 Axum 設置伺服器。然後,本書將指導你如何使用 SeaORM 連接到資料庫。在將後端連接到資料庫後,你將學習 Tower Middleware 以及如何使用它為你的應用程式創建 JWT 認證層。本書的下一部分將指導你使用 WebSocket 以及如何實現並發的 WebSocket 連接。最後一章將把前面章節的理論和範例結合起來,幫助你建立自己的聊天應用程式的畢業專案,將你在本書中學到的所有技能付諸實踐。
如果你想開始學習 Axum,這本書是你所需要的。它充滿了有用的提示和逐步的指導。除了理論資訊外,各章節還附有實際案例,展示概念的應用,以及可以用來測試你理解的測驗。到本書結束時,你不僅會在 Axum 上獲得能力,還會對在實際專案中使用它充滿信心。
你將學會:
- 使用 Axum 創建自己的應用程式的後端伺服器
- 如何使用同樣用 Rust 編寫的 SeaORM 和 Postgres 作為伺服器應用程式的資料庫層
- 在現實世界場景中實現 Axum
本書適合:
對 Rust 有基本了解的初學者或有興趣擴展 Axum 知識的中級網頁開發者。
作者簡介
Indo Yoon is a backend engineer with an interest in web services. With an expertise in Python, Rust, and Go, he is currently working as software engineer for SAP Labs Korea.
作者簡介(中文翻譯)
Indo Yoon 是一位對網路服務感興趣的後端工程師。他精通 Python、Rust 和 Go,目前在 SAP Labs Korea 擔任軟體工程師。