Heroku Part 1

Justin Mitchel
A free video tutorial from Justin Mitchel
Coding Entrepreneur & Teacher - 568,000+ Students
4.4 instructor rating • 30 courses • 683,200 students

Lecture description

Launch your web application on the free tier of Heroku

Learn more from the full course

Try Django 1.10 | Create a URL Shortening Service

Django is a powerful web framework that makes it easy to build web applications it's why it's the #1 Python library

05:27:04 of on-demand video • Updated October 2016

  • Django Basics & Django version 1.10
  • Build a URL Shortening Service Identical to http://kirr.co (as of 10-22-2016)
  • Django Models, Managers, and Save Methods
  • Generating Random Shortcodes
  • Launching a live project (on Heroku.com)
  • Bootstrap Integration
  • Template Inheritance
  • Django-hosts (for controlling subdomains)
  • Setup a Domain name to your hosting server
  • Much more!
English [Auto] Now it's time to actually bring our current application into live service. That is we're going to go into production. We've been in development. Now it's time to go into production where real people can actually use this real service. By the time you're watching this Kerckhove current CEO will actually already exist and you could have already played with it. But since we're watching this now what we're going to be able to do is actually create every step necessary to launch this on a web service. The service we're going to be using is Heroku. This is a server basically a fleet of servers that make it very easy for us to launch our applications. They handle everything behind the scenes to make that happen. Behind Django bot like all the servers working together to make sure that our application runs on a very smooth level. Now Heroku is not the only service that is available. There are definitely other services available but the nice thing about Hoku is we can get started for free without putting any credit cards in and really just going off of using something called Get so we can actually do some installation process. Now there's another one called web faction. We work with web faction and we actually cover on how to launch on web faction in the project. Try Django one point eight that is a project that does show you step by step how to build a landing page and then it shows you how to launch on web faction. And we also have a deal with web faction that allows you to have two months free so if you actually go into our get hub guide and we for triaging a 1.8 you can actually see that we have a deal with them. Yes it's an affiliate deal but it works out great for both of us and you get two months free. It's about $10 a month after that which is really really competitive. Also considering how great their support is when it comes to dealing with issues with your site. I've had a lot of experience with them in that case and that is why they're an affiliate of mine. Otherwise I would definitely not recommend them. The last one is classic bean stock or Amazon's webservices elastic being sock. It is similar to her Oku in the way it works and the way you launch it it just takes a little bit more oomph to get it started. And it's it's competitively priced Heroku but it takes a little bit more like you have to put in a credit card you have to do some extra stuff to actually get that part started or at least that's how it was at one point. And we cover how to do that on joint's if you accomplish projects and we cover it in the launching on elastic beanstalk project itself. Another one we do is something you might consider is Amazon S3 and Django So it's having our static files and our media files stored there on those two things are really useful long term to getting your project going on Amazon Web Services. But again we're going off of Trochu. So now what you're gonna want to do is actually sign up for a free account on Heroku and then we're going to navigate to downloading their command line interface. So their command line interface allows us to work with Heroku directly from the terminal right or directly from command prompt depending on what system you're on. So what you're going to want to do is there's a couple of ways to actually get here or to this page of course you could type out that domain itself. Or you could google command command line interface Heroku. And that will bring you to that same page. Another thing you could do is toolbelt Scott Heroku dot com and that will redirect you to this page. Not the same page but this is the install page toolbelt is the old you are well for where to download their command line interface. And then you're going to go ahead and pick your system and install it that way. Now for those of you who want to watch I'm going to do the OS X installation process and then in the next video we'll actually get this project started in Heroku. OK so now I'm going to actually do the installation process on the go ahead and click and download this OS X installer notice it's downloading. It doesn't take that long. It's not that big. I'm going to go ahead and open it up and this is going to install a couple of things here for us. It's so there Heroku toolbelt. But it's also gonna install something called get get is a version control system that we're going to go into more in a future video. And he was honest and solid for all users installation type. I mean you know obviously do my super user password in there to actually allow it to install. It's gonna run for a second. And there it is. It's all done. So now we are successfully installed. If I hit close it's going to ask me if I want to move it to the trash. Yeah that's really nice. Very convenient that that's there. Cool so now we've done everything we need to as far as setting up the Oku command line or at least a good part of it in the next one will actually jump into doing all the things we need to get that app started.