Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Once you have a server based node application running, you want to host it somewhere. Several cloud hosting services provide specfic services for node applications. In this video, we'll launch a node application on a cloud hosting service. I'm going to launch a node application on Nodejitsu. I've already signed up for an account so now i can begin the deployment process. First, I'm going to install the jitsu command for Nodejitsu. Many cloud hosting services have their own commands, and the one for Nodejitsu is actually a node module available on npm.
To install it, go to Terminal. And now type sudo npm install -g jitsu., Then enter your administrator password. Now that jitsu is installed on this computer, I need to confirm my account. When I signed up for my Nodejitsu account, I received an email with the command to use to confirm my account. The command is in the form jitsu users confirm, followed by my username, and then finally a key. I'm going to run this command now. It's now asking me to finish the confirmation.
Everything looks good to me, so I'm going to say yes. And now it's attempting to log me in. Now I'm going to enter my Nodejitsu password. The account is now confirmed, so now we can deploy an application. First, I need to change directory into the root of the application. So I'm going to do that now. I'm going to type cd. And then, my application is on the desktop right now. So I'm just going to drag that into terminal to get the path, and now I'm going to press return. So now that I'm in the correct directory, I can deploy my application.
To do that, I'm going to type jutsu deploy. It will then prompt for a subdomain. You can accept the default, or you can pick a different subdomain. I'm just going to go with what it's suggesting. Next, it'll ask which version of node you want to run, and defaults to the current stable version. That's what I want, so I'm going to accept it. Finally, it will confirm the changes it's making to package.json. If everything looks good, accept the changes. They look good to me so I'm going to do that.
Then your application will upload to the Nodejitsu servers. Once the upload is complete, Nodejitsu will start your application and give you a URL you can use to access it. Nodejitsu is just one of many Cloud-Hosting services for node server applications. While they offer different features and pricing levels, most of them have command line tools you can use for deploying your application. In the next video, we'll look at resources you can use for learning more about Node.
There are currently no FAQs about Node.js Essential Training.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.