Creating Object map in node.js

Creating an Object map in node.js and how can we access the static and dynamic objects.

Java-Spring or JavaScript-Node.js?

Spring Framework for Java has been around past 15 years since its initial release. Most of the web developers prefer spring to build enterprise level web apps. But since last 3-4 years the Javascript has become more popular not only in the client-side development(Angular and React) but also towards the server-side development, thanks to nodejs. … Continue reading Java-Spring or JavaScript-Node.js?

Web Development Trends in 2018 and for future!

Since the launch of the first website made by Tim Berners-Lee  in 1991, the website development practice have come a long way and every year new web design and development trends are coming. Developers are becoming more agile in learning about these new trends. In 2018,  we'll look at the new trends which are hot … Continue reading Web Development Trends in 2018 and for future!

Building a REST API in NodeJS, Express and MongoDB

REST stands for Representational state transfer. A REST API defines a set of functions which developers can perform requests and receive responses via HTTP protocol such as GET, POST, DELETE, PUT, PATCH. A Real World Example: Facebook  provides a REST API which you can query to get the number likes, you can provide a search … Continue reading Building a REST API in NodeJS, Express and MongoDB

Node JS:101

MEAN Node JS: Web Server Part Creating a Simple Web Server var http = require('http'); http.createServer(function (req, res) {     res.writeHead(200, {'Content-Type': 'text/plain'});     res.end('Hello World How are you !'); }).listen(8080,'localhost'); Executing the above code in Node will create a web server and when you will send the request to server using a browser it … Continue reading Node JS:101

NodeJs: HTTP Request – Response to REST API

Sending HTTP GET/POST Request and Response using Node JS. Code: var https = require("https"); exports.handler = (events,context,callback) => { var options = { host : 'hostname', port : '443', path : 'ifany', headers: { 'Authorization' : 'Basic' + new Buffer("username" + ':' + "password").toString('base64') } }; // request request = https.get(options, function(res){ var body = … Continue reading NodeJs: HTTP Request – Response to REST API