Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 Tests

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:

```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.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

```

## Usage/Examples

```python
$ ./console.py
(hbnb) help

Documented 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

```