Group project
Python
OOP
By: Guillaume
Weight: 5
Project to be done in teams of 2 people (your team: Bright Mujor, mubaraq Abuhasan)
Project over - took place from Aug 1, 2022 6:00 AM to Aug 8, 2022 6:00 AM
Manual QA review was done by Rilwan Bakare on Aug 7, 2022 7:46 PM
An auto review will be launched at the deadline
In a nutshellโฆ
Contribution: 100.0%
Manual QA review: 48.0/48 mandatory
Auto QA review: 294.0/302 mandatory & 168.0/233 optional
Altogether: 168.16%
Mandatory: 97.71%
Optional: 72.1%
Contribution: 100.0%
Calculation: 100.0% * (97.71% + (97.71% * 72.1%) ) == 168.16%
This project is the beginning of a series of projects for recreating AirBnb, from the basic like console to deploy it.
This is the first phase of a four phase project, to create a basic clone of the AirBnB web app. In this first phase a basic console was created using the Cmd Python module, to manage the objects of the whole project, being able to implement the methods create, show, update, all, and destroy to the existing classes and subclasses.
The console was developed in Ubuntu 20.04LTS using python3 (version 3.4.3) Further information ๐ For further information on python version, and documentation visit python.org
Knowledge in python3, how to use a command line interpreter, a computer with Ubuntu 14.04, python3 and pep8 style corrector. This repository contains the following files:
AUTHORS Contains info about authors of the project base_model.py Defines BaseModel class (parent class), and methods user.py Defines subclass User amenity.py Defines subclass Amenity city.py Defines subclass City place.py Defines subclass Place review.py Defines subclass Review state.py Defines subclass State file_storage.py Creates new instance of class, serializes and deserializes data console.py creates object, retrieves object from file, does operations on objects, updates attributes of object and destroys object
test_base_model.py unit tests for base_model test_user.py unit tests for user test_amenity.py unit tests for amenity test_city.py unit tests for city test_place.py unit tests for place test_review.py unit tests for review test_state.py unit tests for state test_file_storage.pyunittests for file_storage test_console.py unit tests for console
Method Description create Creates object of given class show Prints the string representation of an instance based on the class name and id all Prints all string representation of all instances based or not on the class name update Updates an instance based on the class name and id by adding or updating attribute (save the change into the JSON file) destroy Deletes an instance based on the class name and id (save the change into the JSON file) count Retrieve the number of instances of a class help Prints information about specific command quit/ EOF Exit the program Example No.1 โ AirBnB_clone git:(feature) โ
To the peers that contributed with their knowledge
Benjamin Sronipah
Mawunyam
Gabriel Lartey