This project aims to create a clone of the popular AirBnB platform. The goal is to develop a command interpreter that allows users to manage AirBnB objects efficiently. The command interpreter will handle operations such as creating, retrieving, updating, and deleting objects. It will also support additional functionalities like counting, computing statistics, and more.
The command interpreter is a Python-based tool that provides a command-line interface to interact with the AirBnB clone. It enables users to perform various operations on AirBnB objects through a set of predefined commands. By using the command interpreter, users can manage users, states, cities, places, and other entities related to the AirBnB platform.
To get started with the AirBnB clone command interpreter, follow these steps:
- Clone the repository:
git clone https://github.com/jamesayim/AirBnB_clone.git
- Install the necessary dependencies:
pip install -r requirements.txt
- Run the command interpreter:
./console.py
- Use the available commands to interact with the AirBnB clone. Type
help
to see a list of supported commands and their usage.
Here are some examples of commands you can use in the command interpreter:
- Create a new user:
(hbnb) create User
- Retrieve a place by ID:
(hbnb) show Place 12345
- Update the name of a city:
(hbnb) update City 54321 name "New City Name"
- Delete a user:
(hbnb) destroy User 98765
- James Ayim (@jamesayim)