An open API service indexing awesome lists of open source software.

https://github.com/syssos/airbnb_clone


https://github.com/syssos/airbnb_clone

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Holberton AirBnB project

## How to use:
~ Clone the repo:
https://github.com/Syssos/AirBnB_clone


Use chmod to make program executable (console)


ex: chmod u+x console.py

## How to use:
This program is an interactive/non-interactive interface that allows for someone to create/manage objects

of multiple classes related to the AirBnB clone. To use this program correctly please take in not how it is used below

### adding objects:
When a user adds an object they will see the JSON string representation of that object being stored in the "file.json" file

The "file.json" is the "Database" for the project.

To create an instance of a class use the keyword Create

There are 2 classes you can create "user" and "BaseModel" to create versions of these you will have to specify that when using create

ex: create BaseModel


Other commands include:
~ all - shows all instances saved



(hbnb) all



~ show - shows all information for a specific instance



(hbnb) show BaseModel/User



~ create - creates instance



(hbnb) create BaseModel/User



~ destroy - removes instance



(hbnb) destroy BaseModel/User



~ update - updates an instance of a class



(hbnb) update BaseModel first_name "Betty"



~ EOF (ctrl + D) - quits the program



~ help - shows a breif description of the command



(hbnb) help



~ quit - quits the program



(hbnb) quit