GLartey97 / AirBnB_clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0x00. AirBnB clone - The console

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%

AirBnB_clone

This project is the beginning of a series of projects for recreating AirBnb, from the basic like console to deploy it.

Description ๐Ÿ“„

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.

Environment ๐Ÿ’ป

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

Requirements ๐Ÿ“

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:

File Description

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

Usage ๐Ÿ”ง

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) โœ—

Acknowledgements ๐Ÿ™Œ

To the peers that contributed with their knowledge

Authors ๐Ÿ–‹๏ธ

Benjamin SronipahMawunyam

Gabriel Lartey

About


Languages

Language:Python 87.6%Language:HTML 8.6%Language:CSS 3.8%