Git Product home page Git Product logo

wassimoubaziz / krili Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22.99 MB

This project is a full-stack web application developed as a clone of Airbnb using the MERN stack (MongoDB, Express.js, React.js, Node.js). It aims to replicate the core functionality of Airbnb, allowing users to search for accommodations, view details, make bookings, and manage their listings.

License: GNU General Public License v3.0

JavaScript 98.72% HTML 0.30% CSS 0.98%
mern mern-stack oubaziz stack wassim krili

krili's Introduction

Airbnb Clone

Overview

This project is a full-stack web application developed as a clone of Airbnb using the MERN stack (MongoDB, Express.js, React.js, Node.js). It aims to replicate the core functionality of Airbnb, allowing users to search for accommodations, view details, make bookings, and manage their listings.

Getting Started

  1. Clone the Repository:

    git clone https://github.com/wassimOubaziz/krili.git
    
  2. Install dependencies:

    Navigate to client directory and install frontend dependencies using yarn

    yarn install
    

    or

    npm install
    

    Similary navigate to api folder and install backend dependencies

    yarn install
    

    or

    npm install
    
  3. ENV variables:

    • create .env file in the client folder and add these variables

      VITE_BASE_URL= http://localhost:4000

      VITE_GOOGLE_CLIENT_ID= your google client id (watch this vedieo to see how you can do that)

    • create .env file in the api folder and add these variables

      PORT= 4000

      DB_URL= your db url

      JWT_SECRET= your secret (string)

      JWT_EXPIRY= 20d

      COOKIE_TIME= 7

      SESSION_SECRET= your secret session (string)

      CLOUDINARY_NAME= your secret session

      CLOUDINARY_API_KEY= your cloudinary key

      CLOUDINARY_API_SECRET= your cloudinary api secret

      you can watch this youtube video to see how to setup ur cloudinary here

  4. Run project:

    • Open terminal, navigate to client directory and run below command to start frontend
        yarn run dev
    

    or

        npm run dev
    
    • Open another terminal, navigate to api directory and run this command to start backend server
        yarn start
    

    or

        npm run dev
    

Features

  • User Authentication: Users can sign up, log in, and log out securely. Passwords are hashed for security.

  • Google Login: Users can sign up and log in using their gmail.

    Airbnb Logo

  • Search Listings: Users can search for accommodations.

    Airbnb Logo

  • View Listings: Users can view detailed information about each accommodation, including photos, descriptions, amenities.

    Airbnb Logo

  • Make Bookings: Authenticated users can book accommodations for specific dates.

    Airbnb Logo

  • Manage Listings: Hosts can create, edit, and delete their listings.

    Airbnb Logo

  • Responsive Design: The application is designed to be responsive and work seamlessly across different devices.

    Airbnb Logo

Technologies Used

  • MongoDB: NoSQL database for storing user data, listings.
  • Express.js: Web application framework for building the backend server.
  • React.js: JavaScript library for building the user interface.
  • Node.js: JavaScript runtime environment for executing server-side code.
  • Tailwind CSS: A utility-first CSS framework
  • Shadcn: UI library for styling based on Tailwind CSS
  • JWT: JSON Web Tokens for secure user authentication.
  • Cloudinary: Cloud-based image management for storing and serving images.
  • Google Cloud: For gmail based authentication

krili's People

Contributors

wassimoubaziz avatar

Watchers

 avatar

krili's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.