This project is a hotel booking application built using React. It allows users to search for hotels, view hotel details, and make bookings.
- User Registration: Users can log in to their account to access additional features such as bookmarks.
- Hotel Search: Users can search for hotels based on location, check-in/check-out dates, number of guests, and number of rooms.
- Hotel Details: Users can view detailed information about a specific hotel, including name, country, and county.
- Map Provider: Users can view the location of searched hotels and saved bookmarks.
- Booking History: Registered users can view their past bookings and manage their reservations.
- Clone the repository:
git clone https://github.com/hossein-rahmati/Hotel-booking.git
- Navigate to the project directory:
cd hotel-booking
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Start the local server:
npm run server
- Open your browser and visit localhost to access the application
This project relies on the following dependencies:
- React: JavaScript library for building user interfaces.
- React Router: Declarative routing for React applications.
- Axios: Promise-based HTTP client for making API requests.
- React Country Flag: Shows the country's flag based on country code.
- React Date Range: Provides a calendar for check-in/check-out dates.
- React Hot Toast: Shows notifications especially errors.
- React Icons: Provides Icons.
- React Leaflet: Provides Map's structure and graphic
These dependencies are automatically installed when running npm install
.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.