Skip to content

lenhutminhdang/airbnb2

Repository files navigation

Airbnb clone

airbnb clone

airbnb clone

Demo Video: youtube.com

Guide

  1. Create airbnb-server/.env file with following content:

    MONGO_URL=<Your_MongoDB_URL>
    PORT=8080
    JWT=<Your_Secret_Key>
    ORIGIN="http://localhost:5173"
    
  2. Add your firebase config in airbnb-client/src/firebase/firebase.jsx

  3. Install dependencies and run:

    Open Terminal

    cd airbnb-client
    npm install
    npm run dev
    

    Open new Terminal

    cd airbnb-server
    npm install
    npm run dev
    
  4. Import fake data to your MongoDB Compass if needed

    test.bookings.json

    test.places.json

    test.users.json