Skip to content

Tejasp2003/AirBnB-2.0

Repository files navigation

Airbnb Clone

This is a clone of the popular vacation rental website Airbnb, built using Next.js and Tailwind CSS. The application allows users to browse and search for listings, book reservations, create their own listings, and manage their bookings.

Features

  • User authentication with email, GitHub, and Google
  • Secure password storage using bcrypt
  • User can create, view, edit, and delete their own listings
  • User can browse and search for listings based on location, guest count, and room count
  • User can add listings to their favorites
  • User can book reservations
  • User can view and manage their bookings
  • Location-based maps and services using Leaflet and React-Leaflet
  • Image management and optimization using Next-Cloudinary
  • Database access using Prisma
  • User authentication using Next-Auth
  • Form validation using React Hook Form
  • Responsive and modern design using Tailwind CSS

Tech Stack

  • Next.js
  • Tailwind CSS
  • Prisma
  • Leaflet and React-Leaflet
  • Next-Auth
  • Next-Cloudinary
  • React Hook Form

Getting Started

  1. Clone the repository.
  2. Install dependencies: npm install
  3. Create a .env file in the root directory and add the required environment variables.
  4. Run the development server: npm run dev

Environment Variables

  • DATABASE_URL
  • NEXTAUTH_SECRET
  • GITHUB_ID
  • GITHUB_SECRET
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • EXT_PUBLIC_CLOUDINARY_CLOUD_NAME