Node.js
How to Get Current Date and Time in JavaScript
this article will explain two solutions on how to get the date and time in javascript. The first solution uses the date() object, and the second uses the external library Moment.js.
How to add Custom Error Handler Middleware to your Node.js/Express API
This post will discuss Error Handling and show you how to write and set up your own custom Error handler middleware function in Node.js/Express.js API.
Node.js + MySQL : Add Forgot/Reset Password to Login-Authentication System.
This tutorial will show you how to add and implement a forgot and reset password feature to your MySQL + node.js API by using the Nodemailer module to send an email link to the user account and allow him to reset his password when he forgets it securely.
Node.js + Nodemailer : How to send Emails via SMTP with Nodemailer
This article aims to demonstrate and explain how to send emails via SMTP with Nodemailer.
How to get Request Origin in Express.js?
This article will show you how to get a request Origin and request host in express.js.
How to get the Request Host in express.js?
This post will show you how to get a request Host in express.js.
Nodemailer + Gmail: How to Send Emails from Node.js API using Gmail
In this post, we will show how to send emails using a Gmail account. We will start by setting up a Gmail OAuth2 application, generating the tokens, and then using these credentials within the Nodemailer transporter to access Gmail accounts without confronting Gmail security high-level issues in production mode.
Complete JWT Authentication and Authorization System for MySQL/Node.js API
This article will implement a complete authentication and authorization system with JWT to add a security layer to access protected routes within our MySQL/Node.js API.
How to implement Many-To-Many association in MySQL/Node.js API using async/await
This article provided a step-by-step tutorial showing how to easily implement a Many-To-Many association in MySQL/Node.js API using async/await calls.
How to implement One-To-One association in MySQL/Node.js API using async/await
This article will show you how to implement a One-To-One association in a MySQL database using async/await requests in a Node.js API.
How to implement One-To-Many association in MySQL/Node.js API
This article provided a step-by-step tutorial showing how to efficiently represent and implement a One-To-Many association in MySQL/Node.js API using async/await calls.
ONE-TO-ONE Association in MYSQL Database using Sequelize async/await with Node.js
This article will show you how to represent and implement a One-To-One association in a MySQL database using Sequelize async/await to interact with the database in a Node.js API.
MANY-TO-MANY Association in MYSQL Database using Sequelize async/await with Node.js
This tutorial provides a profound explanation of the many-to-many association and how to define and implement it using Sequelize async/await to interact with MySQL database in a Node.js API.
ONE-TO-MANY Association in MYSQL Database using Sequelize async/await with Node.js
This tutorial provides a profound explanation of the one-to-many association and how to define and implement it using Sequelize async/await to interact with MySQL database in a Node.js API.
How to add Routes to insert data into MySQL database-related tables in Node.js API?
This article will show you how to add routes to your Node.js/MySQL API to insert data into your database-related tables using Sequelize ORM.
How to use Sequelize async/await to interact with MySQL database in Node.js
This article will show you how to use Sequelize async/await to interact with MySQL Database in Node.js by building a Node.js Restful CRUD API using Express, Sequelize, and MySQL server.
Example How to use initialize() Function in Node.js/Express API
This article intends to show how you can use the initialize() function in a node.js API to create and connect a MySQL database and initialize the Sequelize models inside this function.
How to Build a Complete API for User Login and Authentication using MySQL and Node.js
This tutorial will teach you how to build a complete Node.js Login, Registration, and user management RESTful API using MySQL. For that, we will use node.js to develop our server and MySQL to store users and handle sessions.
How to Manage Session in Nodejs using Redis Store
In this article, we will present Redis-store, the most popular choice to store and manage session dada, then give you an easy way of how to store session data in Redis store with a practical example.
Node.js + Redis – Complete API for Authentication, Registration and User Management
In this tutorial, you will learn how to build a complete Node.js Login, Registration and user management RESTful API using Redis. For that we are going to use node.js to build our server and Redis to store users and handle sessions.
How to store Session in MySQL Database using express-mysql-session
In this article, we will look at sessions and give you a nice and simple way of how to store them in MySQL database using express-mysql-session.
How to create React Web App with a Node.js API Backend
This article is a step-by-step guide on how to create a full stack React web application and set up the communication between the frontend app and the server backend.
How to make Axios Requests in React to a nodejs API
Making HTTP requests can be done in different ways, and using axois is one of them. In this article, we will discuss how to fetch responses from a node.js API and get ressouces using Axios inside a React apps.
How to interact with MySQL database using async/await promises in node.js
The combination async/await syntax promises makes writing MySQL queries in node.js easier with a better maintainability. This article intent is to show you how to use this combination to interact with MySQL database in node.js in a practical way.
Complete Guide to Build a RESTful API with Node.js and Express
This tutorial is walk through on how to build a complete RESTful API with node.js and Express and connect it to a MySQL database .
How to open Visual Studio code from Command Line
This article shows how to open Visual Studio code from Command Line for both: Windows users and mac users
How to create MySQL database with node.js
The following examples will show you exactly how to create a MySQL database with nodejs using the two types of connection: Single Connection and Connection Pooling.
How to connect node.js API to MySQL database
This tutorial is walk through on how to create a node.js API and connect it to a MySQL database using a : pool connection.
MySQL queries examples in node.js
In the Following, examples of INSERT, SELECT, UPDATE and DELETE queries necessary to operate all CRUD operations: Create, Read, Update and Delete. We will write our queries to get data or make changes to a table named “Employee”.