**Note : You can use buddhima@gmail.com && 123 for admin username and password to login admin dashboard.
A mini project for managing cleaning service bookings. This web application provides user and admin functionalities, including booking services, managing bookings, and handling service offerings. Built using the MERN stack (MongoDB, Express.js, React.js, Node.js).
-
User Features:
- Book cleaning services.
- View and manage personal bookings.
-
Admin Features:
- Add, edit, and delete services.
- Manage all user bookings.
-
Core Technologies:
- Frontend: React with Material UI/Tailwind CSS
- Backend: Node.js with Express.js
- Database: MongoDB
project-directory/
├── backend/ # Backend server with Node.js and Express.js
├── frontend/ # Frontend React application
└── README.md # Project documentation
- Node.js installed on your system
- MongoDB server running locally or remotely
- Git for cloning the repository
git clone https://github.com/your-username/cleaning-service-management.git
cd cleaning-service-management
Navigate to the backend
folder:
cd backend
npm install
Create a .env
file in the backend
folder with the following content:
MONGO_URI=<your_mongodb_connection_string>
PORT=5000
nodemon server.js
The backend server will run on http://localhost:5000
.
Navigate to the frontend
folder:
cd ../frontend
npm install
npm start
The frontend application will run on http://localhost:3000
.
-
Start the backend server:
cd backend nodemon server.js
-
Start the frontend server:
cd frontend npm start
-
Open your browser and navigate to:
- Frontend:
http://localhost:3000
- Backend (API):
http://localhost:5000
- Frontend:
POST /api/register
: Register a new userPOST /api/login
: Login an existing userGET /api/bookings
: Fetch user bookings
POST /admin/addservice
: Add a new cleaning serviceGET /admin/getservice
: Fetch all cleaning servicesUPDATE /admin/updateservice/:id
: update a serviceDELETE /admin/deleteservice/:id
: Delete a service
- Frontend: React.js, Material UI / Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB Compass
- Add email notifications for booking confirmations.
- Implement advanced service filtering and sorting.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any queries, feel free to reach out to:
- Email: buddhimachathuranga300@gmail.com
- GitHub: Buddhima300
Let me know if you need any additional modifications!