Giter Site home page Giter Site logo

airbnb_clone's Introduction

AirBnB Clone - The Console

Project is carried out by Emmanuel Effiong and Gbenga Ogunmefun

Project Description

The main objective of this project is to clone the AirBnB website. First part is to create all classes for AirBnB(User, City, Place) that inherits from a BaseModel Create an abstracted storage engine and validate all classes and the storage engine.

Command Intepreter

  • Create a new object (e.g: a new User or a new Place)
  • Retrieve an object from a file, a database etc...
  • Do operations on objects (count, compute stats, etc...)
  • Update attributes of an object
  • Destroy an object

Functionalities of the console

create: Create a new object (User/Place) update: Update attributes of an object show: Prints the string representation of an instance based on the class name and id all: Prints all string representation of all instances. EOF: method to EOF to exit with. (CTRL D) emptyline: an empty line + ENTER shouldn't execute anything. destroy: Deletes an instance based on the class name and id. quit: Quit command to exit the program

How to use

In interactive mode

$ ./console.py
(hbnb) help

Documented commands (type help <topic>):
========================================
EOF help quit

(hbnb)
(hbnb)
(hbnb) quit
$

In non-interactive mode

$ echo "help" | ./console.py
(hbnb)

Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
$
$ cat test_help
help
$
$ cat test_help | ./console.py
(hbnb)

Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
$

Directory and File Descriptions

models - Contains all models used in the project models/engine/file_storage.py - Used for serialization and deserialization of python objects to and from a Json file. models/base_model.py - Base class for all models. models/city.py, amenity.py, place.py, review.py, state.py, user.py - Entities that inherit from the Base class. console.py - The command line intepreter. AUTHORS - Contributors on this project.

airbnb_clone's People

Contributors

etette avatar torpman avatar

Watchers

 avatar

Forkers

torpman

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.