A simple command line interpreter to be used to add, modify, or delete information in the AirBnB Clone database.
Created and tested on Ubuntu 14.05.5 LTS.
Tests done in VirtualBox on Ubuntu via Vagrant(1.8.6) using python3
(version 3.4.3).
All files were written in the PEP 8 style. Information about this style can be found at https://www.python.org/dev/peps/pep-0008/
models
: holds the modules and methods to be used withconsole.py
tests
: holds the unittests for all modules
- HBNHCommand:
console.py
- Amenity:
models/amenity.py
- BaseModel:
models/base_model.py
- City:
models/city.py
- models.init :
models/__init__.py
- Place:
models/place.py
- Review:
models/review.py
- State:
models/state.py
- User:
models/user.py
- FileStorage:
models/engine/file_storage.py
- engine.init:
models/engine/__init__.py
test_console.py
:tests/
test_amenity.py
:tests/test_models/
test_base_model.py
:tests/test_models/
test_city.py
:tests/test_models/
test____init__.py
:tests/test_models/
test_place.py
:tests/test_models/
test_review.py
:tests/test_models/
test_state.py
:tests/test_models/
test_user.py
:tests/test_models/
test_file_storage.py
:tests/test_models/test_engine
BaseModel FileStorage Amenity City Place Review State User
- Clone the repository to your directory:
git clone https://github.com/jarehec/AirBnB_clone.git
- Run the console
./console.py
To get a list of available commands, typehelp
.
quit
: exits the CLIEOF
: exits the CLIcreate
: create a new object with specified classshow
: print the representation of an instanceemptyline
: does nothing
None known. If one is discovered, please contact one of the authors, listed below.
Kristen Loyd Github , Linkedin Jared Heck Github , Linkedin
Public Domain, no copywrite protection