This is a clone of Airbnb website built with Next.js 13
Next.js 13, Tailwind, Prisma, MongoDB, NextAuth and Mapbox
To see the project in action, visit the following link:
To get this application up and and running on your local machine follow these simple steps.
You need to have Node.js, npm or yarn and git installed on your machine.
-
Clone the repo
git clone https://github.com/ahmetenesdur/airbnb-clone.git
-
Install Packages
npm install
or
yarn install
-
Create an
.env
file looking like thisDATABASE_URL= NEXTAUTH_SECRET= GITHUB_ID= GITHUB_SECRET= GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=
-
Prisma generate
npx prisma generate
or
yarn prisma generate
-
Setup Prisma
npx prisma db push
or
yarn prisma db push
-
Run the app
npm run dev
or
yarn dev
-
Open the app in your browser
http://localhost:3000
- You can sign up with your email and password or with your Google account or github account.
- You can search for a location and see the available listings.
- You can filter the listings by number of guests, price range, number of bedrooms and number of rooms.
- You can click on a listing to see more details about it.
- You can book a listing by selecting the dates and clicking on the reserve button.
- You can see your bookings by clicking on the my reservations button.
- You can see your listings by clicking on the my properties button.
- You can create a listing by clicking on the airbnb my home button.
- You can see favorite listings by clicking on the heart icon.
- You can see your trips by clicking on the trips button.
Distributed under the MIT License. See LICENSE
for more information.