(3/6) Mean Stack: NPM install dependency and Start Development

NodeJS having a package manager tool, its help the developer to manage its package. The NPM manger.

  • Mean Stack: Introduction to Mean Stack
  • Mean Stack: Setup Your machine
  • Mean Stack: NPM install dependency and Start Development 
  • Mean Stack: Angular & Mongodb connection
  • Mean Stack: Address Book App CURD Operation
  • Mean Stack: Publish & deploy code in Heroku &  MLab
  • What is NPM?

    NPM is the package manager for JavaScript. Find, share, and reuse packages of code from hundreds of thousands of developers — and assemble them in powerful new ways.
    you need not to install NPM separate it comes with Nodejs binaries. So before start i will recommend you please read the NPM documentation.

    Install dependency using NPM

    As I am assuming you have already setup your environment. Once you setup next step to install the dependency as  per your requirement, I have installed following dependency as per my requirement as mentioned below in package.json file

    you can check it out my Address Book Project files in my github repository. you need not to be again just use mine and copy the file in root of your project and run "NPM install". All the dependency installed in your local. To learn more about NPM please go through the NPM documentation.

    Start your server

    To create the API, I have used Express, Fast, unopinionated, minimalist web framework for Node.js. Same as IIS in windows. To start your server write the following lines of code to start listen to port number as specified.

    In this Lesson, I have cover mentioned below topics

    1. About NPM: Node package manager
    2. Install dependency using NPM
    3. Create server.js file
    4. Create user interface of address book



    Comments

    Popular posts from this blog

    Mean Stack Address Book

    (1/2) NPM List of Development web Server

    (1/6) Mean Stack: Introduction to Mean Stack