Giter VIP home page Giter VIP logo

holbertonschool-airbnb_clone's Introduction


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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.