Giter Club home page Giter Club logo

airbnb_clone's Introduction

AirBnB Clone (The Holberton BnB)

A simple command line interpreter to be used to add, modify, or delete information in the AirBnB Clone database.

Project Notes

Environment

Created and tested on Ubuntu 14.05.5 LTS. Tests done in VirtualBox on Ubuntu via Vagrant(1.8.6) using python3 (version 3.4.3).

Style

All files were written in the PEP 8 style. Information about this style can be found at https://www.python.org/dev/peps/pep-0008/

Directories and Files

Directories

  • models: holds the modules and methods to be used with console.py
  • tests: holds the unittests for all modules

Files: Programs

  • HBNHCommand: console.py
  • Amenity: models/amenity.py
  • BaseModel: models/base_model.py
  • City: models/city.py
  • models.init : models/__init__.py
  • Place: models/place.py
  • Review: models/review.py
  • State: models/state.py
  • User: models/user.py
  • FileStorage: models/engine/file_storage.py
  • engine.init: models/engine/__init__.py

Files: Test Files

  • test_console.py: tests/
  • test_amenity.py: tests/test_models/
  • test_base_model.py: tests/test_models/
  • test_city.py: tests/test_models/
  • test____init__.py: tests/test_models/
  • test_place.py: tests/test_models/
  • test_review.py: tests/test_models/
  • test_state.py: tests/test_models/
  • test_user.py: tests/test_models/
  • test_file_storage.py: tests/test_models/test_engine

Console Information

Console Functionality

Classes

BaseModel FileStorage Amenity City Place Review State User

Executing the Console/CLI

  1. Clone the repository to your directory: git clone https://github.com/jarehec/AirBnB_clone.git
  2. Run the console ./console.py To get a list of available commands, type help.

Available Commands

  • quit: exits the CLI
  • EOF: exits the CLI
  • create: create a new object with specified class
  • show: print the representation of an instance
  • emptyline: does nothing

Usage Examples

Known Bugs

None known. If one is discovered, please contact one of the authors, listed below.

Authors

Kristen Loyd Github , Linkedin Jared Heck Github , Linkedin

License

Public Domain, no copywrite protection

airbnb_clone's People

Contributors

krloyd avatar jarehec avatar

Stargazers

Samar Ibrahim avatar  avatar

Watchers

James Cloos 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.