Skip to content

I-yan-u/AirBnB_clone

Repository files navigation

Command interpreter to manage AirBnB objects

  • put in place a parent class (called BaseModel) to take care of the initialization, serialization and deserialization of your future instances
  • create a simple flow of serialization/deserialization: Instance <-> Dictionary <-> JSON string <-> file
  • create all classes used for AirBnB (User, State, City, Place…) that inherit from BaseModel
  • create the first abstracted storage engine of the project: File storage.
  • create all unittests to validate all our classes and storage engine.

Execution:

Interactive Mode

$ ./console.py
(hbnb) help

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

(hbnb) 
(hbnb) 
(hbnb) quit
$
Non-interactive Mode

$ 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) 
$

All tests should pass in interactive mode

$ echo "python3 -m unittest discover tests" | bash

Authors:

Iyanu Ajimobi <-> Nafiu Ahmad <->

About

alx AirBnB clone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages