8000 GitHub - MosesSoftEng/AirBnB_clone: AirBNB website
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MosesSoftEng/AirBnB_clone

 
 

Repository files navigation

0x00. AirBnB clone - The console

AirBnb is a..

AirBnB_clone Command interpreter Description.

A command interpreter to manipulate data without a visual interface, like in a Shell (perfect for development and debugging) for AirBnb Project

Functions to be perfomed by console

  1. Create your data model
  2. Manage (create, update, destroy, etc) objects via a console / command interpreter
  3. Store and persist objects to a file (JSON file)

How to start it

How to use it

Examples

Create a JSON storage engine to give abstration between “My object” and “How they are stored and persisted”.

Concepts

Command interpreter

unittest

Data models and classes

Packages, modules and init.py

universally unique identifier (uuid)

chmod +x test_base_model.py; ./test_base_model.py

Tasks

Task 4: Create BaseModel from dictionary

chmod +x test_base_model_dict.py; ./test_base_model_dict.py

pycodestyle models/base_model.py

models/base_model.py, models/init.py, tests/

Task 5: Create BaseModel from dictionary

chmod +x test_save_reload_base_model.py; ./test_save_reload_base_model.py

pycodestyle models/engine/file_storage.py pycodestyle models/init.py

models/engine/file_storage.py, models/engine/init.py, models/init.py, models/base_model.py, tests/

Commands

Check code formating pycodestyle console.py;

Unittest commands

Run unittests using discovery python3 -m unittest discover tests

Run unittest in non-interactive mode echo "python3 -m unittest discover tests" | bash

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

About

AirBNB website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.9%
  • HTML 22.9%
  • CSS 13.2%
0