Holberton project
This is a Airbnb clone projects that will be build with the aim to learn and apply concepts of high level programming and software engineering in general
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Python3
Clone this reposito
git clone git@github.com:Emmastro/AirBnB_clone.git
cd AirBnB_clone
./console.py
This project uses the python unittest model for automated tests
python3 -m unittest discover tests
python3 -m unittest tests/tespytestt_models/test_base_model.py
You can run the schell (in an interactive or non-interactive mode) to manipulate your models. You can start it from running the console.py file:
$ ./console.py
The following commands are supported:
Creates a new instance of BaseModel, saves it (to the JSON file) and prints the id. Ex:
$ create BaseModel
Prints the string representation of an instance based on the class name and id. Ex:
$ show BaseModel 1234-1234-1234.
Deletes an instance based on the class name and id (save the change into the JSON file). Ex:
$ destroy BaseModel 1234-1234-1234.
Prints all string representation of all instances based or not on the class name. Example to show all instances
$ all
Example to show all instances of BaseModel only
$ all BaseModel
Updates an instance based on the class name and id by adding or updating attribute (save the change into the JSON file). Ex:
$ update BaseModel 1234-1234-1234 email "aibnb@holbertonschool.com"
Quit the shell
- Python - Programming language
- @EshietIy - Eshiet Inyang