(3/6) Mean Stack: NPM install dependency and Start Development
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 fileyou 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
Comments
Post a Comment