Web
Analytics
Yogesh | Angular | ASP.NET Tutorials

For Consultation : +91 9887575540

Stay Connected :

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){...
Express JS middleware with example

Express JS middleware with example

What is express middleware Middleware functions are functions that have access to the request object (req), the response object (res), and the next function in the application’s request-response cycle. The next function is a function in the Express router which, when...
update , remove and drop queries in mongodb

update , remove and drop queries in mongodb

update , remove and drop queries in mongodb Following command will update only single document(Default behaviour) db.info.update({},{$set : { age : 40 }}) Following command will update only Multiple document db.info.update({},{$set : { age : 40 }} , {multi : true})...
mongoDB basic queries Part-1

mongoDB basic queries Part-1

mongoDB basic queries Go to bin folder of mongo To Start Mongo server : click on mongod To Start Console for working ; click on mongo Start Writing queries Note : Mongo queries are case sensitive To Show All databases: show dbs To use database: use [databasename] To...
server html static files into node application

server html static files into node application

server html static files into node application Index Us Home About Us About Us Contact Us Contact Us h1 { color: red; } var http = require('http'); var fs = require('fs'); http.createServer(function(req,res){ var content = ''; var type = ''; if(req.url === "/") {...