In this video, @CodeWithTomi shows how to build and deploy an API on Linode. The API will be built on the Django Rest Framework and deployed to a Linux server using a managed postgresql database.
0:39 Install Python Library
1:40 Create a new Django Project
2:55 Create a new Django App
3:55 Create a new Database
7:30 Configure Django Rest Framework
9:20 Create urls.py
10:40 Create class based view
13:00 Create API Notification URL
15:10 Connect Database
19:30 Utilize Django Admin Panel
21:15 Update Models
25:00 Add new business
26:00 Create serializers.py
32:30 Test our code so far
33:50 Deploy API to Linode
34:10 Deploy the Django OCA
36:00 Connect to your server
38:00 Create Django Project on the Server
40:00 Create new repo in GitHub
40:30 Push the project to the new repo
43:40 Access the repo via VSCode
45:20 Update Allowed Hosts in settings.py
46:30 Pull source code
47:00 Test our API
48:38 Update allowed hosts on database server
49:20 Run the app
50:00 Make the Django server persistent
New to Linode? Get started here with a $100 credit.
Read the doc for more information on Django.
Learn more about the four types of APIs.
Subscribe to get notified of new episodes as they come out.
#Linode #API #Django
Product: API, Build API, Linode; @CodeWithTomi