DEV Community

md-hasan-ali
md-hasan-ali

Posted on

CRUD Operations with React and Node

Image description
In this article, I will show you how to do a mern stack crud operation

First of all, we will look at how to install a React front-end project.

CRUD Operation:

   Step:1
Enter fullscreen mode Exit fullscreen mode

Let’s start building the Front-end part with React. To create a new React App, enter the following code into the terminal and hit enter.
Command: npx create-react-app my-app

Step:2
Enter fullscreen mode Exit fullscreen mode

Then go inside that folder and start the project and install the necessary packages And create as many components as needed.

   Step: 3
Enter fullscreen mode Exit fullscreen mode

Then you have to create a project for the backend. There are some steps to be taken. First, you have to accept all the required packages with npm-init then you have to install node MongoDB express cors these important packages.

  Step:4
Enter fullscreen mode Exit fullscreen mode

Then we can see that many APIs of crud operations have been created through the image above.

JWT Token 
Enter fullscreen mode Exit fullscreen mode

The common use case of the JWT token is that it is used for authorization. But the main purpose of the jwt token was to allow one of the two-part browsers and the server-side to work in a standard way.

Image description

Top comments (0)