-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,43 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
#Clone Airbnb with Next.js 13 AppDir : Tailwind ,Prisma ,MongoDB ,NextAuth. | ||
|
||
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! | ||
|
||
|
||
### Setup .env file | ||
|
||
```js | ||
DATABASE_URL= | ||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
GITHUB_ID= | ||
GITHUB_SECRET= | ||
NEXTAUTH_SECRET= | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
|
||
## Deploy on Vercel | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |