This project is a MERN stack-based application that displays a list of employees with an option to edit and delete their details. It includes both the frontend (React) and the backend (Node.js with Express) to handle API requests and database management. The application allows users to manage employee data such as name, email, phone, designation, and courses.
This project is built as a part of an assignment to create a full-stack application using the MERN stack. It allows users to manage an employee list, which includes options to edit or delete records. The frontend is built with React, and the backend is developed using Node.js and Express, with MongoDB as the database.
- Display a list of employees from the database.
- Edit employee details.
- Delete employees from the list.
- Responsive design using Material UI.
- Backend API endpoints for handling employee data.
- Frontend: React, Material UI
- Backend: Node.js, Express
- Database: MongoDB
- Authentication: JWT (optional for secure routes)
- Deployment: GitHub (Frontend), Heroku/Local (Backend)
Follow these steps to run the project locally:
git clone https://github.com/roopikaik/Dealsdray-mern.git
cd Dealsdray-mern
Navigate to the backend folder and install the necessary packages:
cd backend
npm install
Navigate to the frontend folder and install the necessary packages:
cd frontend
npm install
Create a .env
file in the backend
directory and configure it with your MongoDB URI and other configurations. Example:
MONGO_URI=mongodb+srv://Roopika:[email protected]/?retryWrites=true&w=majority&appName=Cluster0
PORT=4001
To run both the backend and frontend:
- Backend: Run the following command in the backend directory:
node Express.js
- Frontend: Run the following command in the frontend directory:
npm start
The application should now be running locally on http://localhost:3000 (Frontend) and http://localhost:4001 (Backend).
Once the application is up and running, you will be able to:
- View the employee list.
- Edit employee details by clicking on the "Edit" link.
- Delete employees by clicking the "Delete" button.
Contributions are welcome! To contribute to this project:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to your branch (
git push origin feature-branch
). - Open a pull request.