Loading video player...
In this video, I walk you through the exact steps I used to deploy a FastAPI application on a Linux server specifically Ubuntu running on Amazon EC2. We start by setting up a modern Python project using UV, a fast and efficient tool for managing dependencies and environments. From there, we spin up an Ubuntu server on AWS, connect to it, and prepare it for deployment. You’ll learn how to: - Set up and configure your Linux server - Install and manage your Python environment with UV - Deploy and run your FastAPI application on EC2 - Expose your app so it’s accessible from the browser using Nginx Support the Channel - Buy Me a Coffee: https://buymeacoffee.com/jod35 - Patreon: https://www.patreon.com/jod35 - Become a Channel Member : Consider joining as a member on YouTube (check the channel's membership section for details). Follow Me - **X (Twitter)**: [https://x.com/jod35_](https://x.com/jod35_) - **GitHub**: [http://github.com/jod35](http://github.com/jod35) TIMESTAMPS: 0:00 Introduction 0:59 Set Up a Linux server on Amazon EC2 6:25 Connect to the server using SSH 8:46 Set up UV on the server 11:32 Set up Nginx on the server 13:25 Create a simple FastAPI app 19:24 Push the code to GitHub 24:20 How we shall run the app in the server 25:42 Clone the code to the server 28:43 Run the app as a service using systemd 42:35 Using Nginx as a reverse proxy 50:46 Disabling the OpenAPI docs 55:34 Conclusion