Giter Site home page Giter Site logo

airbnb_clone's Introduction

AirBnB_clone

image

The AirBnB clone project is a simple copy of the AirBnB website that will be deployed on a server.

It implements only some of the features that cover fundamental concepts of the higher level programming track.

Components

This project will be built step by step not all at once. It has different components.

The console

  • creating a data model
  • manage (create, update, destroy, read) objects via a console / command interpreter
  • store and persists objects to a file (JSON file)

The first piece is to manipulate a powerful storage system. The storage engine gives an abstraction between the objects and how they are stored an persisted. It will allow easy change in storage without need to update the entire codebase.

image

Usage

The console can be used both interactively and non-interactively.

Interactive Mode

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

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) 
$

The commands

Command Function Usage
create Creates an instance of a class +create classname
show Prints string representation of an instance of a class +show classname id
all Prints string representation of all instances of a class +all (classname is optional)
update Adds or updates attributes of an instance. +update classname id attributename attributevalue
count Prints the number of intances of a class. +classname.count()
help Prints information about the different functionality of the console. +help command. The command can be ommitted, this will output all commands for which a help function exists for.

Bugs

No known bugs

Authors

Denis Harold Maanga - [email protected]

Stephen Adeyemo - [email protected]

05th August 2022

airbnb_clone's People

Contributors

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