Skip to content

stanibeneme/AirBnB_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The AirBnB Clone Project

AirBnB Logo

Description

This is the initial phase of the Airbnb Clone: the console. This repository holds the command interpreter and classes (i.e. BaseModel class and several other classes that inherit from it: Amenity, City, State, Place, Review), and a command interpreter. The command interpreter, like a shell, can be activated, take in user input, and perform certain tasks to manipulate the object instances.

How to Use Command Interpreter

Command Sample Usage Functionality
help help displays all commands available
create create creates new object (ex. a new User, Place)
update User.update('123', {'name' : 'Bunmi_n_Stanley'}) updates attribute of an object
destroy User.destroy('123') destroys specified object
show User.show('123') retrieve an object from a file, a database
all User.all() display all objects in class
count User.count() returns count of objects in specified class
quit quit exits

installation

git clone [email protected]/stanibeneme/AirBnB_clone.git
cd AirBnB_clone

usage

interactive mode

$ ./console.py
(hbnb) help

Documented commands (type help <topic>):
========================================
EOF  help  quit

(hbnb)
(hbnb)
(hbnb) quit
$

non-interactive

$ echo "help" | ./console.py
(hbnb)

Documented commands (type help <topic>):
========================================
EOF  help  quit
(hbnb)
$
$ cat test_help
help
$
$ cat test_help | ./console.py
(hbnb)

Documented commands (type help <topic>):
========================================
EOF  help  quit
(hbnb)
$

Environment

  • Language: Python3
  • OS: Ubuntu 14.04 LTS
  • Style guidelines: PEP 8 (version 1.7) || Google Style Python Docstrings || WC3 Validator

Authors

  • Stanley Ibeneme
  • Bunmi Akinola

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •