This project is a frontend application clone inspired by Airbn and Booking.com .
Before running the frontend application, ensure you have the corresponding backend service set up and running.
- Backend Service: You need the associated backend running. Please find the setup instructions or repository link here: [Link to your backend repository or setup instructions]
- You can typically run the backend either locally on your machine or by using Docker, as per the instructions provided in its own repository.
Follow these steps to get the frontend development environment running:
-
Prepare Dependencies (React 19 Compatibility):
- React 19 requires specific versions of libraries like
react-day-pickeranddate-fns. If you are setting up this project from scratch or encountering issues, it's recommended to ensure you have compatible versions. If you previously had older, incompatible versions installed, uninstall them first:
npm uninstall react-day-picker npm uninstall date-fns
(You can skip this step if this is a fresh clone and install)
- React 19 requires specific versions of libraries like
-
Install Latest
react-day-picker:- Install the latest version of
react-day-picker, which should be compatible with React 19.
npm install react-day-picker@latest
- Install the latest version of
-
Install Required
date-fns:- Install the version of
date-fnsrequired by the compatiblereact-day-picker(often v3).
npm install date-fns@^3.6.0
(Verify if the installed
react-day-pickerversion has differentdate-fnsrequirements if you encounter issues.) - Install the version of
-
Install All Project Dependencies:
- This command installs all the remaining dependencies defined in
package.json.
npm install
- This command installs all the remaining dependencies defined in
-
Run the Development Server:
- This command starts the Vite development server, usually accessible at
http://localhost:5173.
npm run dev
- This command starts the Vite development server, usually accessible at
Congratulations! The frontend application should now be running locally.
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh

