An AirBnB clone.
This is the first part of the AirBnB clone team project.
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
- 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)
- 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.
- Hamza Yassine