Node JS Facebook Login with Passport Tutorial with Example

[ad_1] Facebook login authentication in node js express with passport. In this tutorial, you will learn how to implement a Facebook login authentication system in node js express using passport. As well as learn how to handle Session, passport, ejs in node express js. And this facebook login node.js passport tutorial will guide on creating … Read more

NodeJS Express REST API CRUD MySQL Example

This is an example of a NodeJS Express REST API CRUD application with a MySQL database. The application is a simple to-do list application that allows users to add, edit, and delete tasks. The application is built using NodeJS, Express, and MySQL. The application uses the Express framework to create a REST API that can … Read more

Node JS LinkedIn Login using Passport Tutorial

Node.js is a powerful JavaScript-based platform that is used to create server-side applications. It is an open-source, cross-platform runtime environment for developing server-side and networking applications. In this tutorial, we will learn how to use Passport.js to authenticate users with their LinkedIn accounts. We will be using the Passport-LinkedIn-OAuth2 strategy to authenticate users. First, we … Read more

Node JS Google Places Autocomplete Address Example

const googleMapsClient = require(‘@google/maps’).createClient({ key: ‘YOUR_API_KEY’ }); // Get address autocomplete googleMapsClient.placesAutoComplete({ input: ‘1600 Amphitheatre Parkway, Mountain View, CA’, types: ‘address’ }, (err, response) => { if (!err) { console.log(response.json.predictions); } }); [ad_1] Google places autocomplete example in node js express; In this tutorial; you will learn how to create google places autocomplete address without … Read more

Node.js Express Enable HTTPS Tutorial

[ad_1] Node js express server HTTPS; Through this tutorial, you will learn how to enable HTTPS in Node js + express applications. Hypertext transfer protocol secure (HTTPS) is the secure version of HTTP, which is the primary protocol used to send data between a web browser and a website. HTTPS is encrypted in order to increase … Read more

Node JS Dependent Dropdown Example Tutorial

Node.js is a powerful JavaScript-based platform that is used for developing server-side applications. It is an open-source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript and can be run within the Node.js runtime on various platforms. In this tutorial, we will learn how to create a dependent dropdown … Read more

Node js Download File From Rest API

You can use the Node.js request module to download a file from a REST API. The request module is an easy to use HTTP client that allows you to make HTTP requests to external sources. To download a file from a REST API, you can use the following code: const request = require(‘request’); const fileUrl … Read more

Node JS Express Import/Upload Excel Data to MySQL Database

1. Install the required packages: npm install express mysql csv-parse 2. Create a file called ‘import.js’ and add the following code: const express = require(‘express’); const mysql = require(‘mysql’); const csv = require(‘csv-parse’); const app = express(); // Create connection const db = mysql.createConnection({ host : ‘localhost’, user : ‘root’, password : ”, database : … Read more

How to Get/Fetch Data from Json File in Node JS

1. Use the Node.js ‘fs’ module to read the JSON file: const fs = require(‘fs’); // Get content from file let jsonData = fs.readFileSync(‘data.json’); // Parse JSON string into object let data = JSON.parse(jsonData); 2. Use the Node.js ‘request’ module to fetch the JSON file: const request = require(‘request’); request(‘http://example.com/data.json’, (error, response, body) => { … Read more