Git Product home page Git Product logo

airbnb_clone_v2's Introduction

  • Project Overview:

    • The repository contains the initial stage of a student project to build a clone of the Airbnb website.
    • This stage implements a backend interface, or console, to manage program data.
    • Console commands allow the user to create, update, and destroy objects, as well as manage file storage.
    • Storage is persistent between sessions using a system of JSON serialization/deserialization.
  • Repository Contents by Project Task:

  • General Use:

    1. Clone the repository.
    2. Locate the "console.py" file and run it.
    3. The prompt "(hbnb)" indicates you are in the "HBnB" console.
    4. Various commands are available:
      • create, destroy, show, all, update, quit
    5. Advanced syntax is available for some commands.
  • Examples:

    • Primary Command Syntax Examples:

      • Creating an object: create BaseModel
      • Showing an object: show BaseModel 3aa5babc-efb6-4041-bfe9-3cc9727588f8
      • Destroying an object: destroy BaseModel 3aa5babc-efb6-4041-bfe9-3cc9727588f8
      • Updating an object: update BaseModel b405fc64-9724-498f-b405-e4071c3d857f first_name "person"
    • Alternative Syntax Examples:

      • Showing all User objects: User.all()
      • Destroying a User: User.destroy("99f45908-1d17-46d1-9dd2-b7571128115b")
      • Updating a User by attribute: User.update("98bea5de-9cb0-4d78-8a9d-c4de03521c30", name "Todd the Toad")
      • Updating a User by dictionary: User.update("98bea5de-9cb0-4d78-8a9d-c4de03521c30", {'name': 'Fred the Frog', 'age': 9})

airbnb_clone_v2's People

Contributors

kamoellen avatar

Stargazers

Emmanuel Samuel avatar

Watchers

 avatar  avatar

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.