/AirBnB_clone

AirBnB Clone - An ALX Africa/Holberton School Team Project: A replica of the AirBnB Website

Primary LanguagePython

0x00. AirBnB clone - The console

HolbertonBnB logo

HolbertonBnB

An AirBnB clone.

HolbertonBnB logo

Project Description:

This is the first part of the AirBnB clone team project.

Command Interpreter Overview:

This command line interpreter functions as the frontend for a web application, enabling users to interact with the backend developed using Python's Object-Oriented Programming (OOP) paradigm.

Key functionalities of the command line interpreter include:

  • Creating new objects (e.g., User or Place instances)
  • Retrieving objects from various sources such as files or databases
  • Performing operations on objects, such as counting, computing statistics, etc.
  • Updating attributes of objects
  • Destroying objects

Getting Started:

  1. Clone the Project Repository: Clone the project repository from GitHub, which contains the simple shell program along with all its dependencies.

(https://github.com/doncarbon/AirBnB_clone.git)

  1. Explore the Project Files: Once the repository is cloned, navigate to the "AirBnB_clone" folder, where you will find essential files for the program to function.
  • console.py: The main executable of the project, serving as the command interpreter.

  • models/engine/file_storage.py: A class responsible for serializing instances to a JSON file and deserializing JSON files back to instances.

  • models/init.py: Contains a unique FileStorage instance for the application.

  • models/base_model.py: Defines a class with common attributes and methods shared among other classes.

  • models/user.py: A User class that inherits from the BaseModel, representing user-related functionality.

Authors (Worked alone on this team project):

  • Hamza Yassine