aelabassi / AirBnB_clone

The AirBnB clone project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0x00-AirBnB_clone

Welcome to the AirBnB clone project

First step: The command console to manage AirBnB objects

  • Create a parent class BaseModel (abstract?) to take care of initialization, serialization and deserialization
  • 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 ineractive 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 also pass in non-interactive mode: $ echo "python3 -m unittest discover tests" | bash

About

The AirBnB clone project


Languages

Language:Python 69.1%Language:HTML 17.0%Language:CSS 13.8%