https://github.com/polymathuniversata/airbnb_clone_v2
https://github.com/polymathuniversata/airbnb_clone_v2
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/polymathuniversata/airbnb_clone_v2
- Owner: polymathuniversata
- Created: 2024-04-18T03:28:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T06:20:38.000Z (almost 2 years ago)
- Last Synced: 2025-03-03T22:27:47.871Z (over 1 year ago)
- Language: Python
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# HBNB
This is the console /command interpreter for the ALX Airbnb clone project. The console can be used to store objects in and retrieve objects from a JSON.
### Supported classes:
* BaseModel
* User
* State
* City
* Amenity
* Place
* Review
### Commands:
* create - create an object
* show - show an object (based on id)
* destroy - destroy an object
* all - show all objects, of one type or all types
* quit/EOF - quit the console
* help - see descriptions of commands
To start, navigate to the project folder and enter `./console.py` in the shell.
#### Create
`create `
Ex:
`create BaseModel`
#### Show
`show `
Ex:
`show User my_id`
#### Destroy
`destroy `
Ex:
`destroy Place my_place_id`
#### All
`all` or `all `
Ex:
`all` or `all State`
#### Quit
`quit` or `EOF`
#### Help
`help` or `help `
Ex:
`help` or `help quit`
Additionally, the console supports `.()` syntax.
Ex:
`City.show(my_city_id)`