1 00:00:00,000 --> 00:00:04,588 [MUSIC] 2 00:00:04,588 --> 00:00:08,879 [SOUND] Hello there, Andrew here, JavaScript teacher here at Treehouse. 3 00:00:08,879 --> 00:00:13,160 And in this workshop, we're going to deploy an app to Heroku. 4 00:00:13,160 --> 00:00:17,714 Heroku is a hosting platform where you can deploy PHP, Ruby, Python, and 5 00:00:17,714 --> 00:00:20,546 most importantly, Node.js applications. 6 00:00:20,546 --> 00:00:22,570 It's free to get started. 7 00:00:22,570 --> 00:00:26,040 The free tier is fine for development purposes and 8 00:00:26,040 --> 00:00:29,250 websites for small amounts of traffic. 9 00:00:29,250 --> 00:00:30,430 But as your needs grow, 10 00:00:30,430 --> 00:00:34,680 you have the option to scale up your application in paired tiers. 11 00:00:34,680 --> 00:00:39,594 The main idea and benefit of using Heroku as a hosting platform is that it takes 12 00:00:39,594 --> 00:00:43,087 the headache out of setting up your own server online. 13 00:00:43,087 --> 00:00:46,319 Often this is a complicated process, but with Heroku, 14 00:00:46,319 --> 00:00:49,296 you can simply use Git to deploy your application. 15 00:00:49,296 --> 00:00:51,909 Heroku doesn't only host your application, but 16 00:00:51,909 --> 00:00:56,337 also provide you with add-ons for your application from other service providers. 17 00:00:59,838 --> 00:01:07,200 Add-ons could include a database service for hosted instances of MySQL or MongoDB. 18 00:01:07,200 --> 00:01:10,930 Other add-ons include email and SMS services, 19 00:01:10,930 --> 00:01:15,100 application monitoring services like New Relic and much, much more. 20 00:01:15,100 --> 00:01:19,710 We're only deploying a simple app today, so we won't need any of this. 21 00:01:19,710 --> 00:01:23,710 To deploy an app first, you have to have Git installed. 22 00:01:23,710 --> 00:01:28,614 If you're wondering about deploying a map with Node, you probably have this already 23 00:01:28,614 --> 00:01:32,922 installed, if not, I'll link to our Git resources in the teacher notes. 24 00:01:32,922 --> 00:01:36,128 Next you need to sign up to Heroku. 25 00:01:36,128 --> 00:01:38,420 You'll be ask to confirm your email address. 26 00:01:38,420 --> 00:01:41,890 Once you do, you'll be asked to create a password. 27 00:01:41,890 --> 00:01:45,130 Finally, you need to download the Heroku Toolbelt. 28 00:01:45,130 --> 00:01:48,710 This helps you set up and manage your application from the command line 29 00:01:48,710 --> 00:01:52,680 as well as a wide array of add-ons they have to offer. 30 00:01:52,680 --> 00:01:56,780 Once you've signed up, Heroku does a pretty good job of getting you 31 00:01:56,780 --> 00:02:01,420 download the Heroku Toolbelt for managing your hosted applications. 32 00:02:01,420 --> 00:02:05,045 If you haven't deployed an app yet, you'll be prompted with this page. 33 00:02:05,045 --> 00:02:10,046 You want to click on Node.js, and then Set up. 34 00:02:10,046 --> 00:02:15,350 Now, if these pages look different, try and find the Download Toolbelt link. 35 00:02:15,350 --> 00:02:17,920 Once you have that installed on your system, 36 00:02:17,920 --> 00:02:20,550 we'll get preparing the application for deployment.