A modern Admin Dashboard built with React, Tailwind CSS, and Socket.io to manage laundry bookings and provide real-time customer support chat.
This panel is used by admins to monitor orders, update booking status, and communicate live with customers from the Laundry Mart app.
- Admin login
- View all laundry bookings
- Update booking status (Pending / Completed / Cancelled)
- Real-time customer support chat
- Live message updates using Socket.io
- Responsive UI for desktop and tablet
- React.js
- Tailwind CSS
- Socket.io (real-time chat)
- Axios
- JWT Authentication
npm install📋 Booking Management
-
Fetch all bookings from backend
-
Update booking status in real time
-
Status updates are reflected instantly
-
Real-time chat with users
-
Powered by Socket.io
-
Used for order support and queries
- Admin APIs
POST /api/admin/login
GET /api/admin/bookings
PATCH /api/admin/booking/:id
-
connection
-
join_room
-
send_message
-
receive_message
-
JWT-based admin authentication
-
Protected admin routes
-
Environment variables for configuration
-
No sensitive data stored in frontend
This admin panel is part of the Laundry Mart system and helps admins:
-
Manage daily operations
-
Track customer orders
-
Provide instant support via live chat