This project is an Airbnb clone built with Next.js, Tailwind CSS, Prisma, and MongoDB. It was developed by following a tutorial by Code with Antonio.
- Users can search for properties based on location and dates.
- Users can view property details, including descriptions, images, and pricing information.
- Users can book properties by selecting dates.
- Property owners can create listings by providing property details and uploading images.
To run this project locally, follow these steps:
- Clone this repository to your local machine.
- Install the necessary dependencies by running the following command in the project directory:
npm install
- Set up a MongoDB database and update the
DATABASE_URL
environment variable in the.env
file. - Run the following command to start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
- Open
http://localhost:3000
in your web browser to view the app.
- Next.js - a React framework for building server-side rendered and statically generated applications.
- Tailwind CSS - a utility-first CSS framework.
- Prisma - a modern database toolkit for Node.js.
- MongoDB - a NoSQL document database.
To deploy this project on Vercel, follow these steps:
- Fork this repository and create a new project on Vercel.
- Connect your Vercel project to your forked repository.
- Set up the necessary environment variables in the Vercel dashboard, including
DATABASE_URL
. - Deploy the project to Vercel and wait for the deployment to complete.
- Open the URL provided by Vercel to view the deployed app.
Note: Make sure to keep your environment variables private and never share them publicly.
This project was developed by following a tutorial by Code with Antonio. Thank you to Antonio for creating such a helpful resource!
This project is licensed under the MIT License. Feel free to use and modify this code for your own purposes.