The AirBnB Clone Console is a command-line interface (CLI) for managing AirBnB objects. It serves as the primary tool for interacting with the application, allowing users to create, retrieve, update, and delete various objects such as users, places, cities, and more.
-
Clone the repository: git clone
https://github.com/isaquliyev/holbertonschool-AirBnB_clone.git
-
Navigate to the project directory:
cd airbnb-clone
-
Run the console:
./console.py
- All your files will be interpreted/compiled on Ubuntu 20.04 LTS using python3 (version 3.8.5)
- Your code should use the pycodestyle (version 2.7.*)
- You have to use the unittest module
- You can also test file by file by using this command:
python3 -m unittest tests/test_models/test_base_model.py
Your shell should work like this in interactive mode:
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
(hbnb)
(hbnb) quit
$
But also in non-interactive mode:
$ echo "help" | ./console.py
(hbnb)
Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
$
$ cat test_help
help
$
$ cat test_help | ./console.py
(hbnb)
Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
$
All tests should also pass in non-interactive mode: $ echo "python3 -m unittest discover tests" | bash
python3 -m unittest discover tests
Feel free to contribute to the project by submitting bug reports, feature requests, or pull requests. Your contributions are highly appreciated!
- Aytaj Huseynli <aytachuseynli>
- Isa Guliyev <isaquliyev>