Author: Deeksha Maurya

Working with Environment Variables in NodeJS

Reading Time: 3 minutes Introduction Environment variables are one of the most important concepts of Nodejs that allow the application to behave differently for each environment such as development, stage, and production. It is commonly used for: protecting secrets (DB config, API keys, etc) assigning dynamic system resources like port_name, host_name, etc. How to read environment variables from node.js The process core module of Node.js provides the env property 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

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