Node.js

close up photo of programming of codes

Serverless API with AWS Lambda, AWS API Gateway, and DynamoDB

Reading Time: 5 minutes Since we are using AWS cloud services, make sure you have an account for the AWS Console. Let’s start with some basic concepts of serverless computing and then will build serverless API. Introduction “Serverless computing is a method of providing backend services on an as-used basis”, i.e developers do not need to worry about writing the code for the server, creating the server, maintaining the Continue Reading

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

NodeJS Modules| How to create Modules in Nodejs

Reading Time: 4 minutes Introduction In Nodejs, Modules are a small encapsulated unit, which we can reuse, share with anyone, and it’s easier to maintain. It can be a single file or a collection of multiple files or folders. Or we can say a set of a function that we want to include in our application. Types of Module in NodeJS: There are three types of Modules: Local Modules Continue Reading

HTTP Requests Using Axios Library

How to make HTTP Requests Using Axios Library

Reading Time: 3 minutes Introduction Axios is a Javascript library used to perform HTTP requests for Nodejs and browsers. It supports the Promise API and makes it easy to send requests asynchronously. In this article, we will learn, how to make GET/POST/PUT/DELETE HTTP requests using Axios. Features Make HTTP requests from node.js Supports the Promise API Intercept request and response Transform request and response data Cancel requests Automatic transforms Continue Reading

Using pug template for building node applications

Reading Time: 2 minutes Introduction In this blog, we will look how we can use pug as a templating engine for building our node application. And how we can hold the dynamic content in our HTML pages using the templating engine. Here we begin!!!  Setting up Nodejs For using the templating engine we need the node to be installed in our system and then create the package.json file in 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

How to create a basic server in NodeJs

Reading Time: 2 minutes What is NodeJs? Node.js is a JavaScript runtime that is based on Chrome’s V8 engine. It is a server-side JavaScript language. It is open-source and cross-platform. It’s important to note that NodeJS is not a framework or a programming language. It’s a runtime environment for JavaScript code execution. We frequently utilize it to create back-end services such as APIs, Web Apps, and Mobile Apps. It 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

Let’s learn Dockerizing a Node.js web app : Docker

Reading Time: 3 minutes The goal of this blog is to show you how to get a Node.js application into a Docker container. This blog is intended for development, and not for a production deployment. This blog also assumes you have a working Docker Installation and a basic understanding of how a Node.js application is structured. If you want to learn in more detail about it, you can refer here. So let’s Continue Reading

Getting started with first Node JS Server with HTTP

Reading Time: 3 minutes Introduction: Node.js is a platform built on Chrome’s JavaScript Runtime for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. If you wants to learn more about Node.js, you can refer here. Before creating an actual “Hello, World!” application using Node.js, let us see Continue Reading

Being HEADLESS is cool!

Reading Time: 4 minutes Hi! Welcome to this two-part series wherein first I am gonna explain what is headless CMS and in second we are gonna create an end to end dynamic angular app with headless CMS for serving the API requests. In short, there will be no hands-on tutorial on this blog. Let’s learn So, if you are a complete beginner to the web development world or you Continue Reading