Skip to content

A Clone Website Of The Famouse Hotel Booking Site Airbnb Made Using NextJS 13, Tailwind CSS, Prisma, MongoDB, Next Auth And Much More

Notifications You must be signed in to change notification settings

psykat1116/Airbnb

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

  • Clone the repo
git clone https://github.com/psykat1116/Airbnb.git
  • Change the directory name to lowercase otherwise it will not work

  • Install dependencies

cd <Your Given Name>
npm install
  • Create a .env file in the root directory and add the following
DATABASE_URL=
NEXTAUTH_SECRET=
GITHUB_ID=
GITHUB_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=
  • Create a database in MongoDB Atlas and add the url to the .env file

  • Create a Cloudinary account and add the cloud name to the .env file

  • Create a Github OAuth App and add the client id and secret to the .env file

  • Create a Google OAuth App and add the client id and secret to the .env file

  • Add any secret string to the NEXTAUTH_SECRET variable in the .env file

  • Run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.