-
Book Overview & Buying
-
Table Of Contents
Rust Web Programming - Third Edition
By :
In this chapter, we have finally enabled our application to be used by a casual user, as opposed to having to rely on making an API. We built a React application and embedded the React application into the Rust server binary to be served by the Rust server. We built the React application using minimalist tooling, so we understand how the React application is built, packaged, and served. We also covered HTML and CSS concepts to make our frontend application look presentable.
This gave us a dynamic view that automatically updated when we edited, deleted, or created a to-do item. We also explored some basics around CSS and JavaScript to make API calls from the frontend to the backend to get the data needed to render the state of to-do items.
We also explored how frontend assets are served, which enabled us to embed our frontend into the Rust binary to be served by our Rust server. However, we are not going to stop there; in the next chapter, we are going to serve WASM...