Django-to-iOS
Django-to-iOS copied to clipboard

Django to iOS
Integrating a Django project with iOS has never been easier because of Swift, Alamofire, and the Django Rest Framework (DRF). Using these three, we can (1) Build an API (DRF), (2) Interact with the API (Alamofire), and (3) Build iOS Apps (Swift).
This course is all about building an iOS app on top of a pre-existing Django app. We teach you step-by-step in video tutorials https://codingforentrepreneurs.com/projects/django-ios/
The backend for the app is located here
We will continue to update the final code as it is needed. Below you will find the reference code that corresponds to any given lecture in the course.
Enjoy!
Lecture Code & Reference
Getting Started Guide: here
4 - Implement Django
5 - Authentication
6 - Status Code Switch Statement
7 - SwiftyJSON
8 - KeychainAccess
9 - Using an Auth Header with Alamofire
10 - Completion Handlers
11 - Auth Methods
12 - UI Text Fields And A Button
13 - Validate Login Form
14 - Improve Form UI
15 - Perfom Segue
16 - Project Model
17 - Results as Project Instances
18 - Prepare for Segue
19 - UITableView in a View Controller
20 - UI Table View Controller
21 - Video Set
22 - Lecture Model
23 - Create Lectures Method
24 - Custom Tables Cells for Images and Text
25 - Lecture List Table VC
26 - UI Alert View
27 - Table Header View
28 - Video View Controller
29 - UI Web View
30 - Auto Login with Token
31 - Custom UI Nav Button
32 - UINavButton Direction
33 - Add Functionality to UI Nav Buttons
34 - UI Navigation Controller
35 - Check Token or Logout User
36 - New Comment Form
37 - UI Functionality to Comment Form
38 - Another Token Auth Request with Alamofire
39 - Save New Comment on the Server
40 - Completion Handler for Successful Comment Creation
41 - Comment Completion Handler Part 2
42 - Handling Comment Failure
43 - Trigger Noification & Time Delay
44 - Animate Noifcations
45 - Comments Table View Controller
46 - Cell Height based on Cell Text
47 - Scroll to FooterView
48 - Notification Class
49 - Update Comment Adding
50 - Comment Form in Footer
51 - Pull to Refresh Data with UIRefreshControl
52 - Add Video to Comment Table View
53 - The Video Table View Controller
54 - Deselect Row before Segue
55 - Project Description in Header View
56 - Facebook Share Button
57 - Background Image with Pattern
58 - Change Auth Messages to Notifications
59 - Auth View Controller Updates
60 - Update Launch Screen
61 - Lecture List Table Branding
62 - Parent ID for Adding Comments
63 - Response Table View Controller
64 - Insert Response Comment
65 - Auto Adjusting Response Header View
66 - Update ScrollTo Functions
67 - Comment Form Class
68-70 - Minor Code Changes