https://github.com/luancss/next13-airbnb-clone
I developed an Airbnb clone with comprehensive functionalities, covering everything from a responsive frontend to a robust backend to provide a complete experience to users.
https://github.com/luancss/next13-airbnb-clone
axios bcrypt cloudinary mongodb nextjs prisma reactjs tailwindcss typescript
Last synced: about 1 year ago
JSON representation
I developed an Airbnb clone with comprehensive functionalities, covering everything from a responsive frontend to a robust backend to provide a complete experience to users.
- Host: GitHub
- URL: https://github.com/luancss/next13-airbnb-clone
- Owner: Luancss
- Created: 2023-12-07T17:09:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-13T18:35:08.000Z (over 2 years ago)
- Last Synced: 2024-03-14T18:43:01.093Z (over 2 years ago)
- Topics: axios, bcrypt, cloudinary, mongodb, nextjs, prisma, reactjs, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 461 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Full Stack Airbnb Clone with Next.js 13 App Router: React, Tailwind, Prisma, MongoDB, NextAuth 2023
### Desktop (screenshot):
| Home | Info Propertie |
| --- | --- |
|  | 
| Reserve | My Trips |
| --- | --- |
|  | 
| My Properties | Location |
| --- | --- |
|  | 
| Location Map | Add Info Reservation |
| --- | --- |
|  | 
| Upload Photo | Title and Description |
| --- | --- |
|  | 

This is a repository for a Full Stack Airbnb Clone with Next.js 13 App Router: React, Tailwind, Prisma, MongoDB, NextAuth.
[DEPLOY]()
Features:
- Tailwind design
- Tailwind animations and effects
- Full responsiveness
- Credential authentication
- Google authentication
- Github authentication
- Image upload using Cloudinary CDN
- Client form validation and handling using react-hook-form
- Server error handling using react-toast
- Calendars with react-date-range
- Page loading state
- Page empty state
- Booking / Reservation system
- Guest reservation cancellation
- Owner reservation cancellation
- Creation and deletion of properties
- Pricing calculation
- Advanced search algorithm by category, date range, map location, number of guests, rooms and bathrooms
- For example we will filter out properties that have a reservation in your desired date range to travel
- Favorites system
- Shareable URL filters
- Lets say you select a category, location and date range, you will be able to share URL with a logged out friend in another browser and they will see the same results
- How to write POST and DELETE routes in route handlers (app/api)
- How to fetch data in server react components by directly accessing database (WITHOUT API! like Magic!)
- How to handle files like error.tsx and loading.tsx which are new Next 13 templating files to unify loading and error handling
- How to handle relations between Server and Child components!
### Prerequisites
**Node version 14.x**
### Cloning the repository
```shell
git clone https://github.com/Luancss/next13-airbnb-clone
```
### Install packages
```shell
npm install
```
### Setup .env file
```js
DATABASE_URL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_ID=
GITHUB_SECRET=
NEXTAUTH_SECRET=
```
### Setup Prisma
```shell
npx prisma db push
```
### Start the app
```shell
npm run dev
```
## Available commands
Running commands with npm `npm run [command]`
| command | description |
| :-------------- | :--------------------------------------- |
| `dev` | Starts a development instance of the app |