GithubHelp home page GithubHelp logo

airbnb_clone's Introduction

Welcome to the AirBnB clone project!

Description

This is the first step towards building your first full web application: the AirBnB clone. This first step is very important because you will use what you build during this project with all other following projects: HTML/CSS templating, database storage, API, front-end integration…

Commands and how to use it

the command interpreter allow us to handle our data requirements with the following commands

Command Function
create create a new instace of a class
show show the info of an instance of a class
destroy destroy a instance of a class
update update the info of the objects in an instance
all update the info of the objects in an instance
quit exit the console
help show the help of the commands

Objects

this is the objects that you can pass to the command console

Object Function
city city of the reservation
state country state of the reservation
place Name of the place of reservation
user Name of the user who reserves
amenity Benefits of the place
review review of the room and the guest

Start using the console

start the console with ./console you will see: (hbnb) and can start to use the hbnb console

How to use the HBNB console

Syntax:

<command> <classname> <id> id don't apply to create command

For help:

help <command>

Examples:

For Help:

(hbnb)help create
create a new instace of a class
(hbnb)

For standard commands:

(hbnb)create User
993e570d-9b4e-449c-84b3-085ab454d3ce
(hbnb)

It will create a new User

(hbnb)create BaseModel
d711be23-73d9-4fbd-92f5-fe9ec7044d6d
(hbnb)show BaseModel d711be23-73d9-4fbd-92f5-fe9ec7044d6d
[BaseModel] (d711be23-73d9-4fbd-92f5-fe9ec7044d6d) {'id': 'd711be23-73d9-4fbd-92f5-fe9ec7044d6d', 'created_at': '2019-07-04T02:20:53.149558', 'updated_at': '2019-07-04T02:20:53.149791'}
(hbnb)

It will create a new BaseModel and show the objects of the instance

(hbnb)destroy BaseModel d711be23-73d9-4fbd-92f5-fe9ec7044d6d
['BaseModel', 'd711be23-73d9-4fbd-92f5-fe9ec7044d6d']
(hbnb)

Authors

[Ademola Adebowale] (https://github.com/fadebowaley)

airbnb_clone's People

Contributors

fadebowaley avatar

Watchers

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