Skip to content

Welcome to the AirBnB clone project! A colaboration project to create a command-line interface (CLI) known as "The Console," which allows us to manage AirBnB objects using various commands.

Notifications You must be signed in to change notification settings

Kaoutherbo/AirBnB_clone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AirBnB Clone - The Console

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

  • Weight: 5 | Project Duration: Aug 7, 2023 4:00 AM - Aug 14, 2023 4:00 AM
  • Team Members: Boutheldja Kaouther, kawthar ikram Khezour.

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
  • Installation
  • Usage
  • Commands
  • File Structure
  • Contributors
  • License

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

Clone the repository:

https://github.com/ikramikram2020/AirBnB_clone

Navigate to the project directory:

cd AirBnB_clone

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 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

Boutheldja Kaouther - Github | LinkedIn (Team Member)

kawthar ikram - Github | LinkedIn (Team Member)

License

This project is licensed under the MIT License.

About

Welcome to the AirBnB clone project! A colaboration project to create a command-line interface (CLI) known as "The Console," which allows us to manage AirBnB objects using various commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.4%
  • HTML 31.6%
  • CSS 3.0%