Python Backend #5: Deploy Your Flask App (Free Hosting Setup Guide)
๐ Learn how to deploy your Flask app for FREE using Render.com โ no paid hosting required! In this video, we walk through everything from creating your GitHub repo to deploying your API live on the internet. Previous Video: https://youtu.be/NRN2DFpViYc Previous project files: https://github.com/NDCSwift/Swift-Projects/raw/refs/heads/main/Python-Projects/PythonBackedExample_4.zip ๐ Links: Flask: https://flask.palletsprojects.com/ Render: https://render.com/ GitHub: https://github.com/ Example Code & Resources: https://ndcswift.github.io/Swift-Projects/ ๐น What Youโll Learn: โ How to deploy your Flask API using GitHub + Render โ What goes in your requirements.txt and gunicorn setup โ How to connect a live endpoint from Postman or the browser โ API security basics and how to test your public endpoint ๐น Who is this for? โ Python devs ready to share their project online โ Anyone building APIs for apps or portfolios โ Devs who want a free, simple deploy pipeline Manual github remote / push git remote add origin https://github.com/yourusername/flask-api-project.git git push -u origin main ๐ฅ Download My Project Files ๐ Get the source code here: ๐ https://ndcswift.github.io/Swift-Projects/ โฑ๏ธ Timestamps: 00:00 โ Intro & tools for today 00:52 โ Check your api before launching 01:22 โ Opening a folder in VS code 02:13 โ Creating a requirements.txt 02:50 โ updating requirements.txt 04:00 โ Procfile 05:06 โ optional Readme file 05:26 โ Pushing to github with VS code 07:30 โ Using Render to host our API for free 08:24 โ Syncing GitHub & render 09:00 โ Configure on Render 10:27 โ Deployment 11:44 โ Testing with Postman 14:44 โ ReadMe file Markdown 16:19 โ Protecting our API with a key (.ENV) 18:38 โ Requiring an API key for a route 21:19 โ Local Testing if needed 21:33 โ Creating a .gitignore 22:39 โ Import fix for wraps 23:14 โ Testing our API key requirement 25:07 โ Wrap up & Whats next
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.