Skip to content

PRO TIP Block youtube.com at the DNS level β€” Pi-hole, NextDNS or your hosts file β€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Python Backend #6: Connect Your REST API to Any App (Final Mobile & Web Integration)

662 views on YouTube

πŸ“± Your API is live… now let’s use it! In this final video, we’ll build a web-based HTML client AND a SwiftUI iOS app that connects to our Flask backend using real HTTP requests (GET + POST).
Previous Video:

πŸ”Ή What You’ll Learn:
βœ… How to connect a Flask API to a SwiftUI app
βœ… Build a mobile registration form with POST requests
βœ… Create a web client in HTML + JavaScript (no framework needed)
βœ… Understand the basics of cross-platform API consumption

πŸ”Ή Who is this for?
βœ… iOS devs who want to connect to Python APIs
βœ… Python learners ready to go full-stack
βœ… Anyone who wants to demo or test APIs with frontends

πŸ”₯ Download My Project Files
πŸ‘‰ Get the source code here:
πŸ”— https://ndcswift.github.io/Swift-Projects/

⏱️ Timestamps:
00:00 – Intro & goals
00:51 – Installing & Importing CORS
01:38 – Installing Live Server
02:10 – Updating requirements.txt
02:42 – Deploying our updates
03:06 – Creating our HTML front end
08:27 – Adding Javascript to connect to API
16:04 – Testing our Webpage
17:37 – Creating SwiftUI mobile app example
17:47 – Creating Products struct
18:30 – ProductViewModel
23:14 – Displaying our Data
26:23 – Testing our products
26:52 – RegisterViewModel
33:30 – RegisterView
36:06 – Testing our Login / Auth
36:42 – Wrap up