This is a simplified clone of the AirBnB website implemented in Python. It allows users to manage various objects such as users, states, cities, places, and more.
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd AirBnB_clone
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the command-line interface:
python console.py
-
You will enter the interactive prompt where you can execute commands to manage the objects.
-
Available commands:
create
: Create a new object instance.show
: Show details of a specific object.destroy
: Delete an object.update
: Update the attributes of an object.all
: Show details of all objects.count
: Get the count of objects.- Additional commands specific to the implemented models.
-
Example usage:
(hbnb) create User (hbnb) show User 12345 (hbnb) update User 12345 name John
- Manage users, states, cities, places, and other objects.
- Create, retrieve, update, and delete objects.
- Data storage using JSON files.
- Interactive command-line interface.
- Integration with unit tests for testing the functionality.
Contributions are welcome! If you find any bugs or want to add new features, please open an issue or submit a pull request.
- Fork the repository.
- Create your feature branch:
git checkout -b feature/new-feature
. - Commit your changes:
git commit -am 'Add new feature'
. - Push to the branch:
git push origin feature/new-feature
. - Submit a pull request.
This project is licensed under the MIT License.