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
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
Then go inside that folder and start the project and install the necessary packages And create as many components as needed.
Step: 3
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
Then we can see that many APIs of crud operations have been created through the image above.
JWT Token
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.
Top comments (0)