https://github.com/mdbentaleb/airbnb_clone
The 'AirBnB Clone - The Console' project, part of the ALX Software Engineering program, involves creating a CLI to manage application objects, marking the first step in building a full AirBnB-like web app.
https://github.com/mdbentaleb/airbnb_clone
Last synced: 7 months ago
JSON representation
The 'AirBnB Clone - The Console' project, part of the ALX Software Engineering program, involves creating a CLI to manage application objects, marking the first step in building a full AirBnB-like web app.
- Host: GitHub
- URL: https://github.com/mdbentaleb/airbnb_clone
- Owner: mdbentaleb
- Created: 2024-05-17T13:54:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T13:11:31.000Z (about 2 years ago)
- Last Synced: 2024-05-18T15:48:11.045Z (about 2 years ago)
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
Awesome Lists containing this project
README
## AirBnB Clone - The Console
The "AirBnB Clone - The Console" project is part of the ALX Software Engineering program.
It is the first step in building a full web application similar to AirBnB.
This project focuses on creating a custom command-line interface (CLI) to manage various aspects of the application, such as creating, updating, deleting, and retrieving objects.
# Usage
To start the console, run:
```bash
./console.py
```
This will open an interactive command prompt where you can enter commands to manage the application objects.
# Command Interpreter
The command interpreter allows you to interact with the application through various commands.
It provides functionalities to create, update, delete, and retrieve instances of different classes.
# Supported Commands
The following commands are supported by the command interpreter:
- `help` : Displays the help documentation.
- `quit` : Exits the console.
- `create` : Creates a new instance of a class.
- `show` : Retrieves an instance based on its class and id.
- `destroy`: Deletes an instance based on its class and id.
- `all` : Displays all instances, optionally filtered by class.
- `update` : Updates an instance with new attribute values.
# Authors
[mdbentaleb](https://github.com/mdbentaleb)