Giter Site home page Giter Site logo

airbnb_clone's Introduction

AirBnB clone

The goal of this project is to deploy a simple copy of the AirBnB website.

Description

The Console

This is the the entry point of the command interpreter to manage AirBnB objects. It is the first step towards the full web application and achieves the following functins:

  • Puts in place a parent class (called BaseModel) to take care of the initialization, serialization and deserialization of your future instances
  • Create a simple flow of serialization/deserialization: Instance <-> Dictionary <-> JSON string <-> file
  • Create all classes used for AirBnB (User, State, City, Place…) that inherit from BaseModel
  • Create the first abstracted storage engine of the project: File storage.
  • Create all unittests to validate all our classes and storage engine

Installation

  • Clone this repository
git clone https://github.com/BobadeKenny/AirBnB_clone.git
  • Run the command interpreter
python console.py

Usage

The console currently supports the following commands:

  • EOF - Exit the program
  • quit - Exit the program
  • create - Creates a new instance of a class.
$ create BaseModel
  • show - Prints the string representation of an instance based on the class name and id.
$ show BaseModel 1234-1234-1234
  • destroy - Deletes an instance based on the class name and id.
$ destroy BaseModel 1234-1234-1234
  • all - Prints all string representation of all instances based or not on the class name.
$ all BaseModel or $ all
  • count - Prints the total number of instances based or not on the class name.
$ count BaseModel or $ count
  • update - Updates an instance based on the class name and id by adding or updating attribute.
$ update BaseModel 1234-1234-1234 email "[email protected]"

airbnb_clone's People

Contributors

bobadekenny 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.