Coder Social home page Coder Social logo

airbnb_clone's Introduction

Airbnb Clone.

Description.

This is a console for a clone of the Aribnb website. It forms the basis of the structure of the website to be cloned Operations are however carried out from a command line interface.

Description of the Command Interpreter.

  • starting the interpreter:
./console.py
  • usage:
(hbnb) # the help command displays a list of supported commands
(hbnb) help

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

(hbnb) help create  # displays the docstring for create command
Creates a new instance of a class, savves it and prints the id

(hbnb) EOF  # exits the command interpreter, same as quit and ctrl-D

the command all displays all the models created

(hbnb) all
[BaseModel] (8ccb3be8-7a61-47e0-ba1e-63a22da2190d) {'id': '8ccb3be8-7a61-47e0-ba1e-63a22da2190d', 'created_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 953124), 'updated_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 953124)}
[BaseModel] (3d746ba5-f322-46c3-a80b-be7465bd19c5) {'id': '3d746ba5-f322-46c3-a80b-be7465bd19c5', 'created_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 953405), 'updated_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 953405)}
[BaseModel] (02e4846b-d644-47ab-8c12-ddb581215f18) {'id': '02e4846b-d644-47ab-8c12-ddb581215f18', 'created_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 953716), 'updated_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 953716), 'name': 'My First Model', 'number': 89}
[BaseModel] (f3fe3fa2-5036-4330-b6b1-a889f4e3ed7c) {'id': 'f3fe3fa2-5036-4330-b6b1-a889f4e3ed7c', 'created_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 956051), 'updated_at': datetime.datetime(2023, 10, 15, 9, 3, 56, 956084)}
[Amenity] (81cbbc1a-12ab-427f-a039-6a5fb963d562) {'id': '81cbbc1a-12ab-427f-a039-6a5fb963d562', 'created_at': datetime.datetime(2023, 10, 15, 9, 4, 42, 82562), 'updated_at': datetime.datetime(2023, 10, 15, 9, 4, 42, 82562)}
[Amenity] (fcc2b117-62b8-47f5-b1d0-24c21ecc0efd) {'id': 'fcc2b117-62b8-47f5-b1d0-24c21ecc0efd', 'created_at': datetime.datetime(2023, 10, 15, 9, 4, 42, 82715), 'updated_at': datetime.datetime(2023, 10, 15, 9, 4, 42, 82715)}

airbnb_clone's People

Contributors

juniorohanyere avatar bennet489 avatar

Watchers

 avatar

Forkers

bennet489

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.