Skip to content

Instantly share code, notes, and snippets.

@harshulj
Last active March 3, 2017 04:08
Show Gist options
  • Save harshulj/0a07ab77e466ee1ca04db66a07707f31 to your computer and use it in GitHub Desktop.
Save harshulj/0a07ab77e466ee1ca04db66a07707f31 to your computer and use it in GitHub Desktop.
Installing Express.js
#Create a directory to hold the application. Lets call the application rail
$ mkdir rail
$ cd rail
# Now we’ll initialise a npm project. Use the following command for initialising. This command will create package.json file in the directory which will hold information about rail package and its dependency and meta data.
$ npm init
# Next task is to install express for this project. Don’t forget to use — save which adds Express as a dependency in package.json.
$ npm install express — save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment