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