Skip to main content

User Authentication and Authorization with Node.js

In our previous tutorial, we have explained about Chat Application with Node.js, Express & MongoDB. In this tutorial, you will learn how to implement user authentication and Authorization in Node.js.

Authentication and authorization is an important part of any web applications. There can be many routes in a application that provides resources to users. If the authentication and authorization is not handled properly then sensitive information can compromised. So it is very important to provide proper user authentication to provide access to the different resources.

So if you’re developing application with Node.js and wants to implement authentication and authorization, then you’re here at the right place.

(more…)

Scrape Search Data with SERP API using Node.js

In our previous tutorial, you have learned about Create RESTful API with Node.js, Express & MongoDB. In this tutorial, you will learn how to get the SERP data using SERP API with Node.js.

SERP or Search Engine Results Pages is the result pages data that returned by Search Engines. The search results pages data are relevant to the search keywords that generally done manually by the users in Search Engines.

Sometimes we needs search result pages data from all result pages and we develop algorithm for this. But it’s not always accurate as the Search Engines regularly keeps on changing their SERP structures and algorithms. Now we don’t need to be panic as there are SERP APIs are available. The SERP APIs are reliable and allows us to scrape accurate search result pages data.

So if you’re running a business or a developer and looking for accurate SERP data, then you’re at the right place.

The SerpApi is a secure Google Search API that allows to scrape search engine (Google, Bing, etc.) results from anywhere in the world with location parameter and returns response data into JSON data. It can also be easily consumed with any programming language (PHP, Python, Ruby, Nodejs, etc.).

(more…)

Upload Multiple Image File with Node.js

In our previous Node.js tutorial, we have explained how to upload files to Amazon S3 server using Node.js. In this tutorial, we will explain how to upload multiple images using Node.js.

Image upload is an important feature of web applications to allow users to upload profile picture, manage Gallery etc. As we mostly use server side solutions to upload images, but now you can upload images using client end solutions with Node.js, a cross-platform run-time for running server-side JavaScript applications.

We will use Node.js Express framework, formidable, read-chunk and file-type Node.js modules to handle image upload with Node.js.

We will also use Bootstrap for design and jQuery for handling Ajax to upload files. The tutorial explained in easy steps to create multiple image upload example with Node.js and also link t download running source code of example.

(more…)

Amazon S3 File Upload using Node.js

In our previous Node.js tutorial, we have explained how to upload multiple file with Node.js. In this tutorial, you will learn how to upload files to Amazon S3 server with Node.js.

Amazon Simple Storage Service (AWS S3) is a popular web service that provides highly scalable, durable and secure file storage system on web. We can use AWS S3 web services to store files of different formats and can easily retrieve from anywhere and anytime on the web.

As mostly server side solutions are used to upload files to Amazon S3 server and its very time taking. But now we can use client-end solution as it is more faster than server side to upload large files to AWS S3 server with Node.js. The AWS S3 provides AWS SDK for Node.js to upload files from client side.

The tutorial explained in easy steps to implement Amazon S3 file upload with Node.js and can also download source code of running example.

(more…)

How to Install Node.js on Ubuntu

In our previous Node.js installation tutorial, we have explained how to install Node.js on Windows. In this tutorial, you will learn how to install Node.js on Ubuntu 18.04. Installing the Node.js is the first step to getting started and running your first application with Node.js.

Node.js is a cross-platform run-time for running server-side JavaScript applications. It provides a consistent JavaScript platform for general-purpose programming to build network applications quickly by leveraging JavaScript on both the front-end and server-side.


(more…)