This is the first step towards building our first full web application: the AirBnb clone. We must begin by writing a command interpreter to manage all the objects for AirBnb! We must also build a storage engine, with which the interpreter will interact.
Clone AirBnB_clone repository:
git clone https://github.com/aleiadevore/AirBnB_clone.git
There are two ways in which the interpreter can be run:
Interactive and Non-Interactive modes.:
./console.py (hbnb) <command>
echo "<command>" | ./console.py
The console accepts the following commands:
create
show
destroy
all
update
Command | Description | Ex: |
---|---|---|
create | creates a new instance then prints it's id. | create City |
show | shows instance based on class name and id. | show User 4555-4655-54585 |
destroy | destroys an instance based on class name and id. | destroy Amenity |
all | prints all instances based or not on the class name | all City |
all | ||
update | Updates an instance based on the class name and id by adding or updating attribute | update User 4654-4646-4654 name "Lemon" |
This project has been assigned under the curriculum offered by Holberton School. The contributors of this repository are:
Aleia Devore
Bre Rickner
This project is currently in progress and some issues are to be expected while construction is still underway 🤓