This is the frontend of Hotel Hub, a hotel booking web application. The frontend is built using React and provides a user interface for browsing hotels, booking rooms, and managing accounts for both users and admins.
- Home Page: Displays a list of available hotels.
- Login/Signup: Users can create accounts and log in using JWT-based authentication.
- Hotel Booking: Logged-in users can book hotel rooms.
- User Profile: Users can view and update their profile.
- Admin Panel: Admins can manage hotels, users, and bookings from the UI.
- React: For building the user interface.
- React Router: For navigation between pages.
- Axios: For making HTTP requests to the backend.
- Bootstrap: For styling and layout.
- JWT: Used for handling user authentication.
- Node.js and npm installed
-
Clone the repository:
git clone https://github.com/yourusername/hotel-hub.git cd hotel-hub/frontend
-
Install the dependencies:
npm install
-
Start the development server:
npm start
-
The frontend will be running on
http://localhost:3000
.
- Login/Register: Users can sign up or log in to access the hotel booking system.
- Browse Hotels: Users can browse available hotels on the home page.
- Book a Hotel: After logging in, users can select a hotel, view details, and book rooms.
- Admin Access: Admins can log in and manage hotels, rooms, users, and bookings through the admin panel.
src/components/
: Contains React components like forms, hotel listings, and admin panels.src/pages/
: Contains different pages like Home, Login, Register, Admin Dashboard.src/services/
: Contains services for making API requests to the backend.
This project is licensed under the MIT License.