#Here am going to explain NodeJS with JADE viewer application configuration, deployment & testing API[s]
If you found the old node package installed, run this command to completely remove it
sudo apt-get remove --purge node
Install Node.js with Ubuntu Package Manager
To install Node.js, open a terminal and type the following command:
sudo apt-get install nodejs
Then install the node package manager, npm:
sudo apt-get install npm
Now we should have both the node and npm commands working
node -v v0.10.25 npm -v 1.3.10
- Permanent Way
npm install body-parser -- save
- Temporary Way
npm install body-parser
- If application not exists. Download the application.
- Go to the folder where app.js exists through terminal, start the npm server by uising below command.
npm start
Here is the some URL[s],
- Home Page GET http://127.0.0.1:3000/