The Hotel Booking Frontend is a user-friendly interface designed to interact with the Hotel Booking Backend. This React web application is served locally on localhost:3000
during development.
-
Clone the Repository:
git clone https://github.com/uday510/hotel-booking-frontend.git
-
Navigate to the Project Directory:
cd hotel-booking-frontend
-
Install Dependencies:
npm install
-
Start the Application:
npm start
-
Login or Signup:
- Access the login or signup page at localhost:3000.
-
Browse Hotels:
- Explore available hotels at localhost:3000/browse.
-
Booking History:
- View your booking history at localhost:3000/booking-history.
-
Book a Hotel:
- Book a hotel room at localhost:3000/book-hotel.
-
User Authentication:
- Secure login and registration functionality.
-
Intuitive UI:
- User-friendly interface for easy navigation.
-
Hotel Listings:
- Browse available hotels with detailed information.
-
Booking Management:
- View and manage hotel room bookings.
-
Responsive Design:
- Ensures a consistent experience across devices.
-
Frontend Framework:
- Built using React.
-
State Management:
- Utilizes Redux Toolkit for efficient state management.
-
Styling:
- Styled with Tailwind CSS.
-
public
: Contains static assets, including the HTML file and other assets directly copied into the build output. -
src
: The main source code of your React application. Components, styles, and application logic reside here. -
node_modules
: Directory containing project dependencies installed by npm. -
package.json
: Metadata about the project, including dependencies and scripts. -
package-lock.json
: Generated by npm to lock down the versions of dependencies. -
LICENSE
: The license file specifying the terms under which others can use, copy, distribute, or modify your software. -
README.md
: Main documentation file for the project. -
README.old.md
: Older version of the README file.
-
start:
react-scripts start
: Start the development server.
-
build:
react-scripts build
: Build the production-ready application.
-
test:
npm test
: Run tests using the test runner.
# Run tests npm test