This team project is a key part of the ALX Africa Full-Stack Software Engineer program. It's the first step towards building a first full web application: an AirBnB clone. This first step consists of a custom command-line interface for data management, and the base classes for the storage of this data.
The console works both in interactive mode and non-interactive mode, primarily like a Unix shell. It prints a prompt (hbnb) and waits for the user for input.
Command | Description |
---|---|
./console.py |
Run the console |
(hbnb) quit |
Quit the console |
(hbnb) help <command> |
Display help for a command |
(hbnb) create <class> |
Create an object |
(hbnb) show <class> <id> or (hbnb) <class>.show(<id>) |
Show an object |
(hbnb) destroy <class> <id> or (hbnb) <class>.destroy(<id>) |
Destroy an object |
(hbnb) all or (hbnb) all <class> |
Show all objects/instances of a class |
(hbnb) update <class> <id> <attribute name> "<attribute value>" or (hbnb) <class>.update(<id>, <attribute name>, "<attribute value>") |
Update an attribute of an object |
All the code is tested with the unittest module