by Yogesh | Oct 16, 2018 | Node JS Tutorial
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...
by Yogesh | Oct 13, 2018 | mongoDB tutorial
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})...
by Yogesh | Oct 12, 2018 | mongoDB tutorial
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...
by Yogesh | Oct 2, 2018 | Node JS Tutorial
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 === "/") {...
by Yogesh | Oct 2, 2018 | Node JS Tutorial
Define and using Modules: node module export or import The module in the node is a simple JavaScript library where we write some variable and functions. in this tutorial, I am going to discuss that how we can define the module and import the module in another module....