ExpressJs

Get Started with node.js and Express

Reading Time: 3 minutes Introduction In this blog, we will be going through the basics of node Js and express and will see how we can create a server with the help of Express. Node Js and Express NodeJs is an open-source environment that lets you run javascript outside the browser. With the help of node JS, we can create backend services like APIs whereas Express is a free Continue Reading

ExpressJS | Understanding of Expressjs Routing

Reading Time: 2 minutes This article will learn about Expressjs, Installation & Routing in Express.js. Let’s start with Expressjs Introduction. What is ExpressJS? ExpressJS is a fast, unopinionated, minimalist web framework for Node.js. Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. Environment & Installation: Before installing expressjs, install nodejs. Nodesjs version should be 0.10 or Continue Reading

Node JS Server with Express framework

Reading Time: 3 minutes Introduction: Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications. It facilitates the rapid development of Node based Web applications. Following are some of the core features of Express framework − Allows to set up middlewares to respond to HTTP Requests. Defines a routing table which is used to perform different Continue Reading

Enabling CORS in Node.js

Reading Time: 2 minutes In the last blog, we’ve learnt the basic about the CORS, how we can setup and how it works. Now ini this blog, we’re going to learn how we can enable the it in node.js CORS is a browser security feature that restricts cross-origin HTTP requests with other servers and specifies which domains access your resources. Let’s say accessing images, videos, iframes, or scripts from Continue Reading

A Guide to CORS in Node.js with Express

Reading Time: 4 minutes Introduction Node.js is an open-source and cross-platform runtime used when executing JavaScript code on the server-side. One of the popular Node.js server frameworks is Express. Implementing CORS in Node.js helps you access numerous functionalities on the browser. Express allows you to configure and manage an HTTP server to access resources from the same domain. The three parts that form an origin are protocal, domain, and port. Let’s Continue Reading

Spies and Stubs in NodeJS

Reading Time: 3 minutes Hi folks, my last two blogs we discussed about how we can use monkey-patching to test complex code logic which could be difficult to test if it is not used, along with that we also looked over how can stub or mock behaviours of our dependencies using sinon, in this blog we would be exploring more utilities provided by sinon i.e; Spies and Stubs. Spies Continue Reading

Dockerizing a NodeJS app with Redis

Reading Time: 2 minutes Hi folks, in this blog I would walk you through how can we seamlessly dockerize a NodeJS app along with redis, So as we know that docker is a pretty decent way of streamlining and making the process of deployment easier, efficient and pluggable, so let’s gets started but before that, the prerequisite for the blog is a basic understanding of docker

MEAN STACK: Installation (Part 2)

Reading Time: 3 minutes In the previous blog MEAN Stack: Introduction – Part 1, I have given a brief introduction of MEAN Stack and all the technologies used in it. In this blog, I’ll be discussing the installation of all the technologies one by one for Ubuntu. MongoDB: MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling. The installation of MongoDB Community Edition Continue Reading

MEAN Stack: Introduction – Part 1

Reading Time: 2 minutes MEAN Stands for M – Mongo DB (database system) E – Express (back-end framework) A – Angular.js (front-end framework) N – Node.js (back-end runtime environment) What is MEAN? MEAN is a full-stack JavaScript solution that helps you build fast, robust, and maintainable production web applications. The stack used in mean is: Mongo DB: Mongo DB is an open-source, document database designed for ease of development and scaling. It is Continue Reading

Manipulating Server returned dates at client Side in Angular

Reading Time: 2 minutes Hey Visitor, Have you ever faced an issue with the date values on your website, when the date and time returned from server doesn’t change according to the client timezone , for eg. values returned from server at US will be different for a client at India so we need to manipulate the received time according to Indian Time Zone. So recently, I encountered this Continue Reading

CRUD in NodeJs with MongoDB: Explanations

Reading Time: 3 minutes Here we are, in this post we are going to create a CRUD application in NodeJs with mongoDB as database and ejs as a templating engine. You can download the application from here: github Before diving in to this post please checkout my previous post, then you will get to know why i choose ejs as a templating engine. In next post we will use Continue Reading