Node JS

Next JS

How to set token in cookies into Next js app router

Set Token in cookies: Step by step To set a token in cookies in a Next.js app using the App Router, you can use the `useEffect` hook to access the router events and set the token in cookies. Here’s a step-by-step guide: Step 1: Install `js-cookie` NPM package   First, make sure you have installed […]

How to set token in cookies into Next js app router Read More »

Next JS, Node JS, Web Development
MongoDB with ReactJS

Connect MongoDB with ReactJS ?

First, we create a react app, and then for backend maintenance, we create API in node.js and express.js which is running at a different port and our react app running at a different port. for connecting React to the database (MongoDB) we integrate through API. Now see how we create a simple React app that

Connect MongoDB with ReactJS ? Read More »

JavaScript, MongoDB, Node JS, Programming
Hash password node js

Hashing passwords using Bcrypt with Nodejs

According to Wikipedia “bcrypt is a password hashing function designed by Niels Provos and David Mazières, based on the Blowfish cipher. In real life applications with User authentication functionality, it is not practical to store user password as the original string in the database but it is good practice to hash the password and then store them into the database.

Hashing passwords using Bcrypt with Nodejs Read More »

JavaScript, Node JS, Web Development,
node and mongo DB

Connect MongoDB Atlas with NodeJS using Mongoose

MongoDB is a NoSQL database used to store large amounts of data without any traditional relational database table. Instead of rows & columns, MongoDB used collections & documents to store data. A collections consist of a set of documents & a document consists of key-value pairs which are the basic unit of data in MongoDB.

Connect MongoDB Atlas with NodeJS using Mongoose Read More »

MongoDB, Node JS, ,
Scroll to Top