A clone of the AirBnB Website using Python. The goal of the project is to master the fundamentals of Higher level programming. Finally, a server will be deployed with a simple copy of the AirBnB Website.
Functions of the command interpreter:
- Create a new object.
- BaseModel class which defines all common attributes for other classes.
To run tests, run the following command in the respective directory The init.py files are for the initialization of the folder so that tests can be run inside the folder.
Example:
python3 -m unittest tests/test_models/test_base_model.py
To test with unit tests:
~/AirBnB_clone on main !1 ?2 at 14:06:43
❯ python3 -m unittest discover tests
...............................
----------------------------------------------------------------------
Ran 31 tests in 0.004s
OK
Unit tests must also pass in non-interactive mode:
❯ echo "python3 -m unittest discover tests" | bash
...............................
----------------------------------------------------------------------
Ran 31 tests in 0.005s
OK
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
(hbnb)
(hbnb) quit
$
The Authors File is Automatically generated by the "generate-authors.sh" file located in the .git folder at the root of the repository.
Simply run the command below at the root of the repository.
~/AirBnB_clone/.git on main !2 at 22:22:16
❯ ./generate-authors.sh