A simple motel management system with an admin panel to manage room occupancy, services, and checkout, built with React, Express, MongoDB, and Material-UI.
- Check-in clients to rooms
- Add services to rooms
- Check out clients from rooms
- Alert when room occupancy exceeds 4 hours
- Real-time updates using Socket.IO
- React
- Material-UI
- Express
- MongoDB
- Socket.IO
- Axios
-
Clone the repository:
git clone https://github.com/ChanceMark/motel-management.git cd motel-management
-
Install server dependencies:
npm install
-
Install client dependencies:
cd client npm install
-
Set up MongoDB:
Make sure MongoDB is installed and running on your machine. Initialize the database with room data:
node initRooms.js
-
Start the server:
node server.js
-
Start the client:
Open another terminal and navigate to the
client
directory:cd client npm start
motel-management/
├── client/ # React client application
│ ├── public/
│ └── src/
│ ├── App.js
│ ├── App.css
│ └── index.js
├── initRooms.js # Script to initialize MongoDB with room data
├── server.js # Express server
├── package.json # Project dependencies and scripts
└── README.md # Project documentation
-
Check-in a client:
- Enter the client's name and click the "Check In" button.
-
Add a service:
- Enter the service details and click the "Add Service" button.
-
Check out a client:
- Click the "Check Out" button.
-
Real-time updates:
- The admin panel updates in real-time when room statuses change.
- An alert is shown when a room's occupancy exceeds 4 hours.
This project is licensed under the MIT License - see the LICENSE file for details.
Make sure to replace https://github.com/ChanceMark/motel-management.git
with the actual URL of your repository if you plan to publish it on GitHub or another platform. This README provides an overview of the project, setup instructions, usage guidelines, and acknowledgments.