In this chapter, you learned how to prepare your application for deployment. You started by updating the dependencies used for the application and saving them in the
requirements.txt file before moving on to managing the environment variables used for the API.
We also covered the steps involved in deploying an application to production: building the Docker image from the Dockerfile, configuring the compose manifest for the API and database services, and then deploying the application. You also learned new commands to check the list of running containers as well as start and stop Docker containers. Finally, you tested the application to ensure the deployment was successful.
This marks the end of this book, and you should now be ready to build, test, and deploy a FastAPI application on the web. We covered various concepts and ensured that each concept is properly discussed with adequate examples: routing, templating, authentication, connecting to the database, and deploying...