CRUD Application using MERN Stack | React Js, NodeJs, Express Js and mongodb
1. Features of the project:
-
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.
2. Steps to run the project:
a) Installation process:
-
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
, andcors
node packages.
b) .env file setup process:
-
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.
c) Run the project:
Now run both servers by using the command npm start