Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manuel-heav/airbnb_clone
https://github.com/manuel-heav/airbnb_clone
Last synced: about 17 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/manuel-heav/airbnb_clone
- Owner: Manuel-heav
- Created: 2022-10-24T15:44:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T16:32:15.000Z (over 2 years ago)
- Last Synced: 2024-12-31T12:16:29.855Z (about 2 months ago)
- Language: Python
- Size: 119 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README copy.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# Description
HolbertonBnB is a complete web application, integrating database storage, a back-end API, and front-end interfacing in a clone of AirBnB.
The project currently only implements the back-end console.# Storage
The above classes are handled by the abstracted storage engine defined in the FileStorage class.
Every time the backend is initialized, HolbertonBnB instantiates an instance of FileStorage called storage. The storage object is
loaded/re-loaded from any class instances stored in the JSON file file.json. As class instances are created, updated, or deleted,
the storage object is used to register corresponding changes in the file.json.# Console
The console is a command line interpreter that permits management of the backend of HolbertonBnB. It can be used to handle and manipulate all classes utilized by the application.
# Using the Console
The HolbertonBnB console can be run both interactively and non-interactively. To run the console in non-interactive mode, pipe any command(s) into an execution of the file console.py at the command line.
``` bash
$ echo "help" | ./console.py
(hbnb)
Documented commands (type help ):
========================================
EOF all count create destroy help quit show update(hbnb)
$
```Alternatively, to use the HolbertonBnB console in interactive mode, run the file console.py by itself:
``` bash
$ ./console.py
```While running in interactive mode, the console displays a prompt for input:
``` bash
$ ./console.py
(hbnb)
```To quit the console, enter the command quit, or input an EOF signal (ctrl-D).
``` bash
$ ./console.py
(hbnb) quit
$
`````` bash
$ ./console.py
(hbnb) EOF
$
```# AUTHORS