Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashishkk22/nextjs-airbnb-clone


https://github.com/ashishkk22/nextjs-airbnb-clone

mongodb next13 nextauthjs prisma tailwindcss typescript zustand

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        


Airbnb NextJs Clone



### :space_invader: Tech Stack

Client

Server

Database

### :dart: Features

- Property owners can add their properties to the website and they can manage their properties' reservations.
- Users can filter the properties like countries, dates, rooms, guests etc.
- Users can add the properties to the favourites section.
- Users can manage their existing reservations from my reservation section
- This website supports login with GitHub, Google and Email.

### :key: Environment Variables

To run this project, you will need to add the following environment variables to your .env file. you can refer .env.example file for the references.

`DATABASE_URL`
`NEXTAUTH_SECRET`
`GOOGLE_ID`
`GOOGLE_SECRET`
`GITHUB_ID`
`GITHUB_SECRET`
`NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME`

## :toolbox: Getting Started

### System Requirements

- git v2.13 or greater
- nodejs `14 || 16 || 18`
- npm v8.16.0 or greater

All of these must be available in your `PATH`. To verify things are set up
properly, you can run this:

```shell
git --version
node --version
npm --version
```

### :bangbang: Prerequisites

This project uses Yarn as package manager

```bash
npm install --global yarn
```

### :running: Run Locally

Clone the project

```bash
https://github.com/ashishkk22/nextjs-airbnb-clone.git
```

Go to the project directory

```bash
cd nextjs-airbnb-clone
```

Install dependencies and add the required environment variables in the .env

```bash
yarn install
```

To synchronize your Prisma schema with your database schema run

```bash
npx prisma db push
```

Start the dev server

```bash
yarn dev
```

## :handshake: Contact

Ashish Kachhadiya - [email protected]