Crud application which consists of four operations: create, read, update, and delete.
Create a new user and store the MongoDB database.
Read all created user data from the MongoDB database.
Update user information that is already stored in the database.
And last one is that delete the user from the database.
Install node js if you haven’t installed it.
Go to the client folder in your root project.
Install axios
, react-router-dom
, react-hot-toast
react packages.
Now go to the server folder in your root project.
Install express
, mongoose
, body-parser
, dotenv
, and cors
node packages.
Login MongoDB database and create a username and password for your project.
Go to the server folder, .env
file, and change the username and password in the MongoDB connection string.
Now run both servers by using the command npm start