Coder Social home page Coder Social logo

airbnb_clone's Introduction

AirBnB_clone - The console

This repo contains a command interpreter to manage AirBnB objects. It is the first phase of building a simple AirBnB clone.

General architecture of simple AirBnB clone
General architecture of simple AirBnB clone

In this phase a JSON file is used as a storage, which will be replaced by a Database (MySQL) in the coming phases.

project structure

.
├── console.py
├── file.json
└── models
    ├── amenity.py
    ├── base_model.py
    ├── city.py
    ├── engine
    │   └── file_storage.py
    ├── place.py
    ├── review.py
    ├── state.py
    └── user.py
Class diagram
Class diagram

demo of the command interpreter

The command interpreter contains small list of commands

$ ./console.py 
(hbnb) help

Documented commands (type help <topic>):
========================================
EOF  all  count  create  destroy  help  quit  show  update

(hbnb) help create
Creates a new instance of BaseModel

(hbnb) create BaseModel
69ae5c55-313e-4a1a-8134-d195ba2c9791

(hbnb) quit

$

airbnb_clone's People

Contributors

golden-licht avatar ksetho avatar sethaboagye 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.