Git Product home page Git Product logo

airbnb_clone's Introduction

AirBnB Clone - The Console

AirBnB Clone Logo

Project: 0x00. AirBNB Clone - The Console | By: Guillaume

Weight: 5 | Project Duration: Nov 6, 2023 4:00 AM - Nov 13, 2023 4:00 AM

Team Members: Ayoub Baalla, Elhihi Mohamed

Welcome to the AirBnB Clone project! This project is the first step towards building a full web application that emulates the functionality of Airbnb. In this project, we are going to create a command-line interface (CLI) known as "The Console," which allows us to manage AirBnB objects using various commands.

Table of Contents

Background Context

This project is designed to teach us various fundamental concepts in Python, including:

  • Python packages and modules
  • Object-Oriented Programming (OOP)
  • Creating a command-line interface (CLI)
  • Serialization and deserialization of objects
  • Unit testing using the unittest framework

The project aims to mimic the basic functionalities of Airbnb, focusing on creating classes to represent different elements of the application, managing object serialization and deserialization, and providing a command-line interface for interacting with the objects.

Installation

  1. Clone the repository:

git clone https://github.com/MinightDev/AirBnB_clone

  1. Navigate to the project directory:

cd AirBnB_clone

  1. Run the console:

./console.py

Usage

Once the console is launched, you can start using various commands to manage your AirBnB objects. For a list of available commands, type help or help <command> to get more information about a specific command.

Commands

The following commands are available in the console:

  • create: Creates a new instance of a class and saves it to a JSON file.

  • show: Displays the string representation of an instance.

  • destroy: Deletes an instance based on the class name and ID.

  • all: Displays all instances of a class or all instances in the storage.

  • update: Updates the attributes of an instance.

For a complete list of available commands, refer to the console's built-in help feature.

File Structure

The project file structure is organized as follows:

  • console.py: The main command-line interface (CLI) script.

  • models/: Directory containing class definitions for different AirBnB objects.

  • models/engine/: Directory containing the storage engine implementation.

  • tests/: Directory containing unit tests for the project.

Contributors

  • Ayoub Baalla (Team Member)

  • Elhihi Mohamed (Team Member)

License

This project is licensed under the MIT License.

airbnb_clone's People

Contributors

adamin88 avatar

Watchers

Ayoub avatar

Forkers

adamin88

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.