This project is an Airbnb clone, a web application that allows users to discover and book accommodations worldwide. It replicates the core functionality of the Airbnb platform, enabling users to search for properties, view property details, and make reservations.
-
User Authentication: Users can create accounts, log in, and manage their profiles.
-
Property Listings: Browse and search for available properties.
-
Property Details: View detailed information about each property, including descriptions, amenities, and photos.
- Booking System: Users can make reservations for selected properties and manage their booking history.
- Host Functionality: Property owners can list their accommodations, manage bookings, and update property information.
- Frontend: React.js, Tailwind CSSfor styling.
- Backend: Node.js, Express.js, MongoDB for data storage.
- Authentication: JSON Web Tokens (JWT).
-
Clone the repository:
git clone https://github.com/nikkittaa/booking-app.git
-
Navigate to the project directory:
cd booking-app
-
Install dependencies for the frontend and backend:
# Install frontend dependencies cd client npm install # Install backend dependencies cd ../api npm install
-
Set up environment variables:
- Create a
.env
file in theserver
directory with the required environment variables (e.g., MongoDB connection string).
- Create a
-
Start the development server:
# Start the frontend server cd client npm run dev # Start the backend server cd ../api nodemon index.js
-
Open your browser and go to [http://localhost:5173] to access the Airbnb clone.