
Get an understanding of the architecture of Actix Web, its main features, and how we can customize the framework's capabilities for our own purposes
Let's review the structure of an Actix Web app as well as setting up a basic instance
Understand what SqlX is and how to integrate it with both Actix Web and the Postgres database.
Now that we understand how to use Actix Web and SqlX we will review a working Twitter Api clone. First we'll take a look at our Repository implementation, using SqlX and Postgres. Then we'll learn about our setup of our Actix Web instance and core settings. Then we'll understand how Routes, Extractors, Responders, and Error Handling are integrated into the system. And finally we'll launch our app on Docker and test it to make sure it's working.
In this section we will review the project's structure include the Cargo.toml file and some related core Rust files. If you are already familiar with Rust workspaces and customizing project structure you can safely skip this section.
Any real Api Service needs a repository layer to interact with the database. In this section we'll see how to build out a fully functional Data Access Layer including data querying, inserting and transactions. We will also understand concerns like proper structure and loose coupling.
Understand all the pieces that make up a complete Actix Web Server including Application Design, Route Handlers, Extractors, Response types, etc. Then integrate with Docker and run our final project.
Get a conceptual understanding of Actix Web's architecture and learn about its many features and capabilities.
Learn how to setup and initialize an Actix Web Server. Learn how to build Route Handlers that respond to requests. Create unique Extractors to receive parameters in a type safe way. Handle Errors that may occur during Route Handler processing.
Understand how SqlX works and how to query databases. Use SqlX to connect to Postgres, through a Docker image, and do CRUD operations like select, insert, update, and delete. Learn how to perform transactions in SqlX and how to exit a transaction early if an error occurs. Also learn about SqlX's database migration capabilities, so that you can create and modify schema as data needs change.
Learn how to structure an Api Server. Creating Separation of Concerns, Encapsulation, and loose coupling of code. This will enhance your ability to continue building on the original application.
Gain practical understanding on the code base for a large and realistic Twitter Api clone. We will be diving deep into Actix Web Routing, Extractors, Responders, Error Handling, SqlX queries, and more.
All Course projects are built using Docker images containing both the Actix Web Server and Postgres database as needed for the lessons.