A comprehensive admin dashboard for managing motel operations, built with ReactJS, Material-UI, and Tailwind CSS. This application provides a user-friendly interface for motel administrators to manage rooms, customers, and other essential motel operations.
- Room Management: Add, update, delete, and view room details
- Customer Management: Maintain customer records and booking history
- User Authentication: Secure admin login and access control
- Real-time Updates: Live data synchronization with the backend
Live Application: moteldb.junnio.xyz/login
Before running this application, ensure you have:
- Node.js (v14 or higher)
- Access to the Motel API backend (see API Repository)
-
Clone the repository
git clone https://github.com/Junn1o/MotelDB.git cd MotelDB -
Install dependencies
npm install
-
Configure environment variables Create a
.envfile in the root directory:REACT_APP_API_URL="yourapiurl" REACT_APP_API="yourapiurl"
-
Start the development server
npm start
-
Or using Docker (Recommended)
# Build and run with Docker docker build -t motel-room . docker run -p 3001:80 motel-room
The application will open at http://localhost:3001
This admin dashboard works in conjunction with:
- API Backend: Motel API - ASP.NET Core 7 REST API
- Client Frontend: Motel Room Client - Customer-facing website
- Frontend Framework: React.js
- UI Library: Material-UI (MUI)
- Styling: Tailwind CSS
- HTTP Client: Axios
- Build Tool: Create React App
- Deployment: Docker containerization, Cloudflared tunnel port expose