Web
Analytics
Yogesh | Angular | ASP.NET Tutorials

For Consultation : +91 9887575540

Stay Connected :

building rest api with node.js and express

building rest api with node.js and express

Step 1: Create a Node application and install dependencies. npm init npm install --save express npm install --save body-parser npm install --save underscore npm install --save nodemon Step 2: Create a movies.json file and add following code. [{ "Id": "1", "Title":...
Express JS Static files serving

Express JS Static files serving

Initial command to start a new node application. npm init npm install express --save Create folders public, images, and styles in the application. Index.js var express = require('Express'); var path = require('path'); var app = express();...
express router tutorial

express router tutorial

express router tutorial Basic setup command npm init npm install express   var express = require('express'); var myrouter = express.Router(); myrouter.get('/', function(req, res){ res.send('Get Route without parameter'); }); myrouter.get('/about', function(req, res){...