Skip to content

Yunus-kidem/AirBnB_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

0x00. AirBnB clone - The console

Description

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

Files description

  • 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.

Features

  • Programming language: python3
  • Style: All modules use the PEP 8 style
  • Documentation: All modules have documentation, including the functions, classes,etc.

Usage

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
$

Authors

Name GitHub username
Yunus Kidem Yunus-kidem
Promise Yehangane nuel07

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published