Giter Club home page Giter Club logo

airbnb_clone's Introduction

AirBnB_clone

AirBnB Clone Project :

Embarking upon the AirBnB Clone venture! The primary ambition of this undertaking resides in the construction of a distilled rendition of the AirBnB platform. Central to our focus is the formulation of a command-line-driven entity administration framework. This comprehensive README furnishes a panoramic survey of the enterprise, the command interpreter, initiation protocols, operational guidelines, as well as illustrative instances of utilization.

Project Overview :

The first piece is to manipulate a powerful storage system. This storage engine will give us an abstraction between “My object” and “How they are stored and persisted”. This means: from your console code (the command interpreter itself) and from the front-end and RestAPI you will build later, you won’t have to pay attention (take care) of how your objects are stored.

This abstraction will also allow you to change the type of storage easily without updating all of your codebase.

Command Interpreter :

The command interpreter serves as a conduit, facilitating your engagement with the AirBnB framework via the terminal interface. It affords you the capacity to effectuate a spectrum of operations, encompassing the creation, retrieval, modification, and removal of entities. This segment expounds upon the initiation protocol of the interpreter, its operational nuances, and proffers instances of illustrative commands.

Starting the Interpreter:

1.Clone or download this project to your computer.

https://github.com/younis-alx/AirBnB_clone.git

2.Open your terminal and navigate to the project's main directory.

cd AirBnB_clone

3.Run the following command:

python3 console.py

Using the Interpreter:

Command Example Functionality Return
create 'create [class]' Creates a new instance of BaseModel, saves it (to the JSON file) and prints the id. Ex: $ create BaseModel uuid
show 'show [class] [uuid]' Prints the string representation of an instance based on the class name and id all dictionary with all stored info on uuid
update update BaseModel [uuid] [key] [value] Updates an instance based on the class name and id by adding or updating attribute None
destroy destroy [class][uuid] Deletes an instance based on the class name and id None
all all [class] Prints all string representation of all instances based or not on the class name all dictionary with of object

airbnb_clone's People

Contributors

younis-ahmed avatar

Watchers

 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.