Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exclud/airbnb_clone
A clone of the AirBnB Website using Python.
https://github.com/exclud/airbnb_clone
airbnb clone clone-app clone-website flask linux python rest-api shell
Last synced: 3 days ago
JSON representation
A clone of the AirBnB Website using Python.
- Host: GitHub
- URL: https://github.com/exclud/airbnb_clone
- Owner: exclud
- License: gpl-3.0
- Created: 2023-08-07T17:44:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-15T06:55:48.000Z (about 1 year ago)
- Last Synced: 2023-09-15T22:18:44.124Z (about 1 year ago)
- Topics: airbnb, clone, clone-app, clone-website, flask, linux, python, rest-api, shell
- Language: Python
- Homepage:
- Size: 98.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AirBnB_clone - The Console
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.
## Running TestsTo 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:
```bash
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.004sOK
```
Unit tests must also pass in non-interactive mode:
```
❯ echo "python3 -m unittest discover tests" | bash
...............................
----------------------------------------------------------------------
Ran 31 tests in 0.005sOK
```
## Usage/Examples
```python
$ ./console.py
(hbnb) helpDocumented commands (type help ):
========================================
EOF help quit(hbnb)
(hbnb)
(hbnb) quit
$
```## Authors
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```