Giter Site home page Giter Site logo

airbnb_clone's Introduction

Synopsis

The Airbnb clone project for which we are creating a copy of the Airbnb.

Only some features will be implemented and will be listed below once completed.

Features

Command Interpreter

Description

The Command Interpreter is used to manage the whole application's functionality from the command line, such as:

  • Crete a new object.
  • Retrieve an object from a file, database, etc.
  • Execute operation on objects. e.g. Count, compute statistics, etc.
  • Update object's attributes.
  • Destroy an object.

Usage

To launch the console application in interactive mode simply run:

console.py

or to use the non-interactive mode run:

echo "your-command-goes-here" | ./console.py

Commands

Commands Description Usage
help or ? Displays the documented commands. help
quit Exits the program. quit
EOF Ends the program. Used when files are passed into the program. N/A
create Creates a new instance of the <class_name>. Creates a Json file with the object representation. and prints the id of created object. create <class_name>
show Prints the string representation of an instance based on the class name and id. show <class_name class_id>
destroy Deletes and instance base on the class name and id. destroy <class_name class_id>
all Prints all string representation of all instances based or not on the class name all or all <class_name class_id>
update Updates an instance based on the class name and id by adding or updating attribute update <class_name class_id key value>

Tests

If you wish to run at the test for this application all of the test are located under the test/ folder and can execute all of them by simply running:

python3 -m unittest discover tests

from the root directory.

Bugs

  • No known bugs at this time.

airbnb_clone's People

Contributors

henok-belachew avatar yeamhagroup 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.