Find us on facebook

May 29, 2015

Create App with node.js


After installed Node.js, "npm" command will be available, this is short for the Node Package Manager, this allows to keep track of any dependencies that the app uses. To allow to easily setup a lightweight web application, install Express using the "npm" command. 

npm install express --save

This command will instruct NPM to install express onto the machine and also save a reference to it into a file called package.json. package.json should include all the dependencies required to run the app wherever it may be, on whatever machine using the npm install command. Another package require is "ejs", a templating engine that will help to bring together HTML and Node.js.

npm install ejs --save



No comments:

Post a Comment