https://github.com/syssos/airbnb_clone
https://github.com/syssos/airbnb_clone
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/syssos/airbnb_clone
- Owner: Syssos
- Created: 2018-06-08T23:05:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T19:40:37.000Z (almost 8 years ago)
- Last Synced: 2025-06-04T22:41:18.357Z (about 1 year ago)
- Language: HTML
- Size: 518 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
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