Summary
In this chapter, we have gone through the main concepts needed to replicate our to-do application. We built and ran a Rocket server. We then defined routes and established a database connection for our server. After that, we explored middleware and built authentication and data processing using guards for our views. With this, we created a view that utilized everything we have covered in this book.
What we gained here was a deeper appreciation for the modular code that we have built throughout this book. Even though some of the concepts we revisited had not been touched since the start of this book, these modules were isolated, did one thing, and did what their label proposed. Because of this, they can easily be copied over and utilized in a completely different framework. Recall the HTML rendering module that we built in Chapter 5, Displaying Content in the Browser. It had no dependencies, and it was merely loading the data from HTML, CSS, and JavaScript files, merging...