Table of Contents
This is a mandatory project for Holberton School made by Salvador Borit and Juan Matias Rossi from cohort 18. This is the first part of AirBnB clone (six in total).
In this early stage of the package we made a console with custom commands to manipulate different objects and save them in json format.
Clone the repository
git clone https://github.com/SchneiderSix/holbertonschool-AirBnB_clone.git
You can create, delete, update, display string representation of a single object, objects of same group (class) or all objects.
Type help
to see every command. Types of objects: Amenity, City, Place, Review, State, User
.
The objects will be stored in json format, in a file called file.json
. The file is going to appear in the root directory.
If you want to quit just use the command quit
or ctrl + D
.
-
Interactive mode
Execute the fileconsole.py
like this./console.py
. -
Non-interactive mode
Use echo with the command wanted and a pipeline withconsole.py
, like thisecho "all" | ./console.py
.
Create + type
create User
Show + type + id
show User e9227551-770e-471d-bde6-9357bbd61836
All + type(optional, shows all objects of that type)
show all
Update + type + id + attribute + value
update User e9227551-770e-471d-bde6-9357bbd61836 name Robert
Destroy + type + id
destroy User e9227551-770e-471d-bde6-9357bbd61836
- Salvador Borit - Linkedin - 5084@holbertonstudents.com
- Juan Matías Rossi - Instagram - Linkedin - knuckles116635@gmail.com
Project Link: https://github.com/SchneiderSix/holbertonschool-AirBnB_clone