AuthorTutor Network Team

GitHub OAuth2.0 Authentication

G

This module allows you to use GitHub OAuth2.0 authentication in your Node.js apps. GitHub authentication may be simply and unobtrusively implemented into any application or framework that supports Connect-style middleware, such as Express, by linking into Passport. What is Git Hub GitHub is a web-based version control repository with around 20 million users worldwide. It is the world’s...

Deploy Node JS and Express REST API on Heroku

D

Hey folks! In this tutorial, we will be seeing how we can deploy Node JS and Express Rest API on Heroku. One of Heroku’s main advantages is that you can simply add resources to your project in the form of add-ons. Databases, logging and monitoring tools, CI and CD tools, and testing tools are examples of external resources. Let’s have a look at how to add a new resource to your...

Connecting a React JS application with node JS

C

This tutorial is all about connecting a React JS application with Node JS but before jumping right into it let’s just get familiar with ReactJS and NodeJS. React JS: React JS is an open-source JavaScript library for creating single-page applications with a focus on user interfaces. It has a strong developer community and is extensively used for creating SPAs (Single Page Applications). Node...

OAuth2.0 Authentication with Node JS and PassportJS

O

There are a lot of authentication methods for web applications and one of them is passport js. It allows you to use Google to authenticate your Node.js applications. Google authentication may be simply and unobtrusively implemented into any application. Passportjs is a popular choice for frameworks supporting Connect-style middleware. Hence, it is widely used with Express. So without further...

The Basics of NPM

T

Introduction to npm In the last article, you learned how to get started with integrating NodeJS in your apps. In this guide, you will learn how to install and use packages from NPM. What is NPM and why use it? NPM is a package manager for the NodeJS library. Via NPM, developers can use a plethora of modules which allows the programmer to extend their program’s functionality without writing...

Streams in Node JS

S

What are streams in Node JS? Streams in Node are objects that allow to read and write data. Of course, to read the data, the stream requires some source of data, and to write the data, it needs some destination. Streams perform the read operation from source and write operation on the destination in a continuous manner. There are four types of streams in Node JS. Writeable Streams: In writable...

Buffers in Node JS – Part 2

B

We split the buffers topic into two tutorials for better understanding. In the previous article, we learned about the introduction to buffers, writing data in a buffer, and reading it using Buffer class methods in Node JS. In this article, you will learn more methods provided by the Node JS buffer class. These methods are commonly used while working with buffers, so you must practice them on your...

Create Buffers in Node JS

C

In this tutorial you will learn how to create buffers in NodeJS. But before learning this it is important to learn some related terms. What is unicode representation? Unicode is a standard to encode the text and each character is assigned a unique numeric value in this standard. Then this standard value remains the same on every platform and can be used cross-platform. Pure JavaScript supports...

Event Emitter in Node JS

E

Nodes in Node JS emit many events regularly with the help of event emitter. For instance, whenever a peer user connects with net.Server, it emits an event. Similarly, fs.readStream emits an event upon file opening. All the event emitting objects are instances of events.EventEmitter. In the previous articles, we are learning about callbacks and events. In continuation of those tutorials, we will...

Event Loop in Node JS

E

We learned the callback concept of Node JS in the previous tutorial. This article is in the continuation of the previous and relates events with the event loop, so if you have not gone through the callback concept, it is recommended to grip on the concept first. How Node JS event work with callback? Node JS provides concurrency by using the callbacks and events. Although Node JS is a single...

Tutor Network