How To Deploy A Django App To AWS In 5 Minutes

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi guys welcome to this video in this video I'm gonna be showing you the easiest way to deploy your jungle application to AWS so to do this we're going to be using a platform called zit so zit allows you to easily deploy your web applications to the web so you can deploy not just Django applications but flask applications next.js applications and a lot more that you can see on their website so there'll be a link in the description below where you can check out zit and this is the application I'm going to be deploying is a basic to-do list app that are built with Django some time back and this is the GitHub repository here and I'm going to walk you through I'm going to use this GitHub repository to deploy this particular Django project on the web so the first thing that we want to do is to come to zit.com so once you come to zit.com you're going to see everything you need to know about the website and what you just need to do is to click on sign up and create a new account using GitHub or whatever provider you want to use but I already have an account so I'm just going to click on login and once I click on login it's going to log me in so I'm gonna you can log in or sign up with GitHub Google or metamask I created my account with GitHub so I'm just going to log in with GitHub and now what you're just going to do is to redirect me to my account so I'm still on my onboarding process so it's going to ask you a few questions about what you want to use the app to do and all of that so you can just answer that and you know it's going to take you straight to your dashboard so for example right now I am it tells me to deploy a project so from here I'm just going to deploy my project straight my first project now it says deploy a sample or I've got my own since I have my own project on GitHub I'm just going to click on I've got my own and I'm going to go to deploy my repo so it's going to ask me what project Source I want to use so do I want to take the project from GitHub Domino is a Docker image or am I trying to deploy a managed database in this process I'm trying to deploy a jungle project from my GitHub repo I'm going to click on that and then it's going to tell me to connect my GitHub repository I'm going to click on that and what it's going to do is that it's gonna ask to connect this and I'm just going to click on all repositories and I'm going to click on install so you're just going to install zit on my GitHub so zit can have access to my GitHub repositories so in my case I'm going to deploy this to-do list app right here this is what I want to deploy and as you can see it has already seen it as a python project so I'm just going to click on deploy and it's going to ask me if I want to use a serverless or I want to deploy my application to see it using you know Docker or kubernetes clusters so I'm just going to do is to click on this serverless and then it's going to ask me for my configuration and the listening Port so the listening port for you know Django is 8 000 so I'm going to change that to 8 000. I'm just going to click on continue so now he's gonna ask it's gonna say overview and deploy and it's just telling me the report that is trying to deploy the project name and the app name I'm just going to leave everything as default and I'm going to click on continue so now it's going to ask me to connect to an infrastructure so since we are using since we are using AWS we're just going to click on AWS but if you want to use Google cloud or you know if you don't have any cloud provider or you can just click here also to recommend the cloud providers you want them to have on their platform so I'm going to click on AWS and in here it says to gives it permission to deploy to AWS you need to paste your AWS account ID so what I'm going to do is to log into AWS so you need to make sure you have an AWS account you're going to log into AWS and I'm going to show you how to get your account ID quickly so I'm going to log into AWS right here this is my AWS logged in and I'm just gonna come to this right top right corner right here and I'm gonna see my account ID and I'm just gonna copy that so once I have my account ID copied I'm going to come in here and paste it and I'm going to click on ADD so what it's just going to do now after as you can see it says AWS account added but it has not been connected so I need to authorize it so I'm going to authorize it by clicking on this button right here and then it's gonna redirect me to AWS to create a stack and then once we have that done everything should be working perfectly so what I'm just going to do is to scroll down just going to click on this and everything is just going to leave it as default so you don't really need to change anything if you don't want to so I'm just going to click on create stack and that is going to take a couple of seconds to create so as you can see it says that it has been created successfully so if I come back here to see it you can see that it gives us the connected check mark now I'm just going to click on deploy now so once I click on deploy now it's going to start the deploy event process as you can see everything is working successfully and then we're just going to wait for this to deploy it says build pending we're going to wait for everything to deploy and then we're gonna check it out so as you can see it says that our project has been deployed successfully and then it takes us to our dashboard for that project automatically now we're going to come into settings and what we're going to do is under where we see build and run we're going to come into run command and in run command we're actually going to write python manage that's Pi I'm going to say run server and if you know Django you're going to know that when you want to run your project you have to use this particular command to run that project so what we are doing is that we are just telling zit what command it should run whenever it wants to run our particular project so when we say pythonmoney.py run server what we need to specify is the port we want it to run on so we're going to say 0.0 point 0.0 point eight thousand I remember earlier when we were setting up the port we put 8 000 as a port so what we're just gonna do is to now click on Save so once we click on save it says build settings save it's just gonna build that again for you and then once that is built you'll be able to see your application Live on the web so as you can see right here everything has been deployed successfully and if we come to this green button right here it says visit at its deployment if I click on that it's going to open up our project on this link so as you can see now the project is live on the web so this is the basic project I built and as you can see everything is showing on here and this is a link that you can use to visit this particular web app so that was a very easy way of deploying your jungle application on the web using zit so as you can see the whole process was seamless and it was also free you didn't have to you know do a lot of commands and all of that all you just needed to do was to follow the process I showed in this video and you have your Django project live on the web so once again visit zit.com or click the link in the description below and check it out and you know you can also deploy different type of projects not only Django they have compatibility for flask next.js and a lot more on their website so I hope you enjoyed everything we did in this video if you did please don't forget to smash the like button and subscribe and thank you for watching and I'll see you in the next one
Info
Channel: Code With Tomi
Views: 15,303
Rating: undefined out of 5
Keywords: python, django, aws, learn python, python tutorial, python for beginners, django for beginners, django deployment, web app deployment, aws deployment, zeet, zeet deployment
Id: gAoWMalbbRo
Channel Id: undefined
Length: 7min 54sec (474 seconds)
Published: Fri Dec 23 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.