Skip to content

SchneiderSix/holbertonschool-AirBnB_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

AirBnB clone - The console

Back-end, storage engine (json)
Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Examples
  5. Architecture
  6. Contact

About The Project

This is a mandatory project for Holberton School made by Salvador Borit and Juan Matias Rossi from cohort 18. This is the first part of AirBnB clone (six in total).

(back to top)

Getting Started

In this early stage of the package we made a console with custom commands to manipulate different objects and save them in json format.

Clone the repository

git clone https://github.com/SchneiderSix/holbertonschool-AirBnB_clone.git

(back to top)

Usage

You can create, delete, update, display string representation of a single object, objects of same group (class) or all objects. Type help to see every command. Types of objects: Amenity, City, Place, Review, State, User. The objects will be stored in json format, in a file called file.json. The file is going to appear in the root directory. If you want to quit just use the command quit or ctrl + D.

  • Interactive mode Execute the file console.py like this ./console.py.

  • Non-interactive mode Use echo with the command wanted and a pipeline with console.py, like this echo "all" | ./console.py.

Create + type

create User

Show + type + id

show User e9227551-770e-471d-bde6-9357bbd61836

All + type(optional, shows all objects of that type)

show all

Update + type + id + attribute + value

update User e9227551-770e-471d-bde6-9357bbd61836 name Robert

Destroy + type + id

destroy User e9227551-770e-471d-bde6-9357bbd61836

(back to top)

Architecture

architecturelayers

(back to top)

Examples

examples

(back to top)

Contact

Project Link: https://github.com/SchneiderSix/holbertonschool-AirBnB_clone

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published