AuthorTutor Network Team

How to connect MongoDB using mongoose in Node JS

H

Mongoose.js is a Node.js library that connects your MongoDB clusters or collections to your Node.js application. You can use it to construct schemas for your documents. When it comes to generating and working with schemas, Mongoose has a lot to offer. We’ll look at how to connect a MongoDB instance to a Node.js application in this tutorial. What is MongoDB MongoDB is one of the most popular...

How to use Ejs templates with node js

H

Embedded JavaScript is abbreviated as EJS. It’s a simple templating language/engine that allows users to produce HTML using only JavaScript. When you need to output HTML with a lot of JavaScript, EJS comes in handy. You’ll learn how to use ejs templates with node js, how to incorporate repeating areas of your site, and how to send data to views in this tutorial. Prerequisites A common...

Authentication API with JWT Token in Node.js Part 1

A

In this tutorial, we’ll learn how to build authentication API with jwt token in node js to secure endpoints and even authenticate users. Writing code and developing applications is quite simple, but security is always a concern when it comes to efficient apps. So, without wasting much time, let’s start together. What is Authentication and Authorization? Security uses authentication and...

Authentication API with JWT Token in Node.js Part 2

A

This is the part authentication api with jwt token in node js. If you don’t know that is JSON web token, and how it works, please go back and check out the first part of it. So, Let’s get started. Before that, let’s have a quick review of what we did in the previous part, we have created directories for routes, models, and controllers, and we set up our server. Now we are going to implement our...

Open weather map API NodeJS tutorial

O

In this Open weather map API NodeJS tutorial, we are going to see how we can create a weather api with node js that will give us weather forecasts of any city/country. Seems Amazing right? So, without any further delay, let’s get started. We are going to use Open Weather Map API for fetching forecasting details of about 200,000 plus cities. You can read more about Open Weather Map API at Open...

nodejs create zoom meeting

n

Today in this tutorial – nodejs create zoom meeting – we will be generating a zoom meeting using node js. Since we often need to send meeting URLs without passwords in some meeting schedule projects so that members can join the meeting with just a link. So, let’s get started. What is zoom? Zoom is a cloud-based video conferencing service that allows you to virtually connect with...

Generators in NodeJS

G

This tutorial is all about Generators in NodeJS and their differences with Callback. So without further delay let’s dive right in. What are generators? In recent years, Generators are getting more and more popular day by day in Node.js. This popularity is because of what Generators are capable of doing.  These are the function executions that can be paused and played later.The concept of...

WebSockets in NodeJS part 2

W

Welcome to Websockets in NodeJS part 2. In this part, we will be implementing the client-side and the server-side in this part, and after that WebSockets will come into action. So, without any further delay let’s jump right in. Implementing the server The first step is to implement the server-side javascript. Type the following code in a file named index.js. const express = require('express')...

Promises in NodeJS tutorial (part 1)

P

In this Promises in NodeJS tutorial and we will be discussing promises in detail from introduction to implementing promises. This tutorial is in two parts and this is the first part of Promises in NodeJS. So let’s jump right into this tutorial. What are promises? Before starting with promises, let’s revise ‘callback” functions in NodeJS. We have already discussed callbacks in detail in...

NodeJS with TypeScript tutorial

N

Microsoft developed TypeScript, which is a very popular open-source language, and is software developers from all over the world absolutely love this language. This language adds new capabilities to JavaScript and is like a superset of JavaScript. Static type definitions are the most notable addition in TypeSript that are not present in plain JavaScript. You can declare what kind of argument we...

Tutor Network