Posts for Node

Node.js is an open-source, cross-platform, JavaScript run-time environment that executes JavaScript code outside of a browser.

How to Model your data in MongoDB

MongoDB is a database that is also known as a NoSQL database. In another word, MongoDB is a schema-based database that is used to store data in documents. It is highly scalable and powerful. It stores data by following a field-value data structure that is most likely JSON but in MongoDB, it is known as […]

January 28, 2022 in Node & Tutorials

How to use CORS in ExpressJS

In this article, you are going to learn about how to use CORS in ExpressJS. ExpressJS is an open-source backend web application framework for NodeJS. It is very popular and provides a rich set of features for web development. CORS stands for cross-origin resource sharing. It is a package of NodeJS that provides browser security […]

January 21, 2022 in Code examples & Node

What is req.body in ExpressJS

In this article, you will learn about what is req.body in ExpressJS and, how to use it. ExpressJS is a very popular and open-source backend web application framework for NodeJS. In express, you will get req.body property. Basically, it is an object that will allow you to access data from the client-side in the form […]

January 21, 2022 in Code examples & Node

How to copy file in NodeJS

In this article, you are going to learn about how to copy a file in NodeJS. NodeJS is an open-source JavaScript runtime built on the Chrome V8 engine for executing JavaScript code on the server-side. It is very fast and highly scalable with extensive large community support. You may perform different actions with the help of […]

January 17, 2022 in Code examples & Node
Deven
Deven wrote

Create your first web server and Learn basic routing in Nodejs

NodeJS is an open-source JavaScript runtime built on the Chrome V8 engine for executing JavaScript code on the server-side. To make the web page more interactive the language, JavaScript was built. Writing JavaScript code outside of the browser was like daydreaming once a time. But now it is the reality that we can write JavaScript […]

January 14, 2022 in Node & Tutorials
Deven
Deven wrote

How to create and save schema array of strings in Mongoose

In this article, you will learn about how to create and save a schema array of strings in Mongoose. Mongoose is an ODM(Object Data Modeling) library for MongoDB and it lets you create a schema model and save documents in MongoDB. In the Mongoose schema model, you can create an array of strings. To create […]

January 13, 2022 in Code examples & Node
Deven
Deven wrote

Learn How to read and write file in NodeJS

NodeJS is very fast and highly scalable because of its event-driven, single-threaded and, non-blocking I/O model and you can do many interesting things by using it. Reading and writing files is one of them. It is a very essential functionality that is provided by NodeJS and the implementation of these things is very easy. You […]

December 28, 2021 in Node & Vue

Sending Emails With Vuejs and Nodemailer

Sending mails over the internet has become one of the most significant features every web application would love to integrate. In this article, we will see how to send email templates using Nodemailer as our transporter service, Handlebars, as our email templating engine. What We will be building We will build a simple application where […]

June 17, 2020 in Node & Tutorials & Vue

Build A REST Service With Fastify

Fastify is a high-performance HTTP framework for Node.js. Fastify focuses on speed, and it’s inspired by ExpressJS and HapiJS. In this article, we will learn how to build a RESTFUL service using Fastify by Creating a CRUD API with Fastify. Learning prerequisites Basic familiarity with Javascript. Nodejs installed on the development machine  MongoDB installed on […]

May 1, 2020 in Node & Tutorials

Setting Up Angular Authentication Using JWT

In this article, we will be building an authentication system in Angular using Expressjs, MongoDB, and JSON web token(JWT) for authentication.We will start by creating a simple REST API with Expressjs and MongoDB that will enable a user to signup and login with their details. Learning prerequisites Basic familiarity with Javascript. Basic Knowledge of Angular. […]

April 9, 2020 in Angular & Node & Tutorials
Afolayan
Afolayan wrote

Building CRUD API using Restify Framework

A lot of countless options exist for building APIs with JavaScript frameworks these days, and each with their own advantages. This article will focus on explaining the steps to build an API with Create Read Update and Delete (CRUD) functions using the Restify Framework for Node.js. The project we’re going to be building would be […]

February 4, 2020 in Node & Tutorials

Creating a logging middleware in Expressjs

Logging is an important part of supporting the complete application life cycle. By analyzing the data in the logs, we could resolve bugs much quicker, and detect problems early as they happen. One of the most basic kind of logging every backend application should have is a trace logging of all incoming HTTP requests. In […]

December 26, 2019 in Node & Tutorials
Deven
Deven wrote

Build a server monitoring app using Node & Angular

In this tutorial, we will build a Real-time server monitoring app using Node and Angular that will show the free memory available on our server. Take a look at the app we are going to build:  we will be using following tech stacks Vagrant Node.js Angular chart.js  To create our development server we will be […]

December 17, 2019 in Angular & Node & Tutorials