Skip to content
 
 

Repository files navigation

0x00. AirBnB Clone- The Console

Introduction

0x00. AirBnB Clone is ALX team project, where we build clone of AirBnB

We Build The Console That Is Able to Perform The Following

*Create a new object (ex: a new User or a new Place) *Retrieve an object from a file, a database etc… *Do operations on objects (count, compute stats, etc…) *Update attributes of an object *Destroy an object

Storage

All the classes are managed by the Storage engine in the FileStorage Class.

Installation

git clone https://github.com/matshidisolp/AirBnB_clone.git

change to the AirBnb directory and run the command:

 ./console.py

Execution

In interactive mode

$ ./console.py
(hbnb) help

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

(hbnb)
(hbnb)
(hbnb) quit
$

Testing

All the tests are defined in the tests directory.

to run the inittest

echo "python3 -m unittest discover tests" | bash

How to Use

  • Start the console in the terminal
$ ./console.py
(hbnb)
  • Use help to see the available commands:
(hbnb) help

Documented commands (type help <topic>):
========================================
EOF  all  count  create  destroy  help  quit  show  update

(hbnb)
  • Quit the console:
(hbnb) quit
$

AUTHORS

Innocent Karabo Mohlala
Matshidiso Pitswane

About

AirBnB python project

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages