Initializing Node.js projects


show more Initializing Node.js projects provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013) show less
please wait ...

Initializing Node.js projects

The best way to start a project in Node is to create a package.jason file. In this video we'll use the npm command to generate this file for us. First let's create a folder for this project. I'm going to create it on the desktop and name it airline. Now go to terminal. Type in cd and space, and now drag the folder into terminal to get the path. Now type return. Now I'm going to use a tool called npm. Npm is distributed with node and it helps with module installation, among other things Right now we're going to use npm to help us generate a package.json file.

To do that type npm and it. After you press enter, it'll step you through the creation of the file. The first thing it prompts you for is the name, and if you don't specify a name, it'll just use the name of the folder where the package.json file is going to be. In this case it's airline, and that's fine with me. So I'm going to hit return. Next it's going to ask you for a version. In this case, I'm...

Initializing Node.js projects
Video duration: 2m 37s 3h 17m Intermediate

Viewers:

Initializing Node.js projects provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013)

Subject:
Developer
Software:
JavaScript Node.js
Author:
please wait ...