This repository contains the first tasks of the AirBnB clone project for ALX. During this first part of the project we had to::
- 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
-
AUTHORS This file has a list of individuals that contributed content to the repository.
-
console.py It contains a command line interpreter limited to a specific use-case. In our case, we want to be able to manage the objects of our project using this console.
-
models This folder contains all the Class modules of the project, and a folder called engine.
-
tests This folder contains all the UNITTEST of every module stored in the models folder and the TEST of the console.py file.
- Programming language: python3
- Style: All modules use the PEP 8 style
- Documentation: All modules have documentation, including the functions, classes,etc.
The console (console.py) works like this in interactive mode:
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF help quit create destroy show all update
(hbnb)
(hbnb)
(hbnb) quit
$
But also in non-interactive mode:
$ echo "help" | ./console.py
(hbnb)
Documented commands (type help <topic>):
========================================
EOF help quit create destroy show all update
$
Name | GitHub username |
---|---|
Yunus Kidem | Yunus-kidem |
Promise Yehangane | nuel07 |