https://github.com/syssos/airbnb_clone_v3
https://github.com/syssos/airbnb_clone_v3
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/syssos/airbnb_clone_v3
- Owner: Syssos
- Created: 2018-08-20T22:51:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T18:26:08.000Z (almost 8 years ago)
- Last Synced: 2025-02-25T23:31:14.895Z (over 1 year ago)
- Language: Python
- Size: 396 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# Synopsis
> The Airbnb clone project for which we are creating a copy of the [Airbnb](https://www.airbnb.com/).
> Only some features will be implemented and will be listed below once completed.
> At this stage, we are implementing an additional storage option. Based on which
> database is chosen (file storage or database storage), JSON is used or
> MySQL and SQLalchemy is used via Python. Fabric is used for application deployment.
## Features
### Command Interpreter
#### Description
The Command Interpreter is used to manage the whole application's functionality from the command line, such as:
+ Create a new object.
+ Retrieve an object from a file, database, etc.
+ Execute operation on objects. e.g. Count, compute statistics, etc.
+ Update object's attributes.
+ Destroy an object.
#### Usage
To launch the console application in interactive mode simply run:
```console.py ```
or to use the non-interactive mode run:
```echo "your-command-goes-here" | ./console.py ```
#### Commands
Commands | Description | Usage
-------- | ----------- |-------- |
**help** or **?**| Displays the documented commands. | **help**
**quit** | Exits the program. | **quit**
**EOF** | Ends the program. Used when files are passed into the program. | N/A
**create** | Creates a new instance of the \. Creates a Json file with the object representation. and prints the id of created object. | **create** \
**show** | Prints the string representation of an instance based on the class name and id. | **show** \
**destroy** | Deletes and instance base on the class name and id. | **destroy** \
**all** | Prints all string representation of all instances based or not on the class name | **all** or **all** \
**update** | Updates an instance based on the class name and id by adding or updating attribute | **update** \
## Resources
* Fabric: [Usage1](https://www.digitalocean.com/community/tutorials/how-to-use-fabric-to-automate-administration-tasks-and-deployments), [Usage2](https://www.pythonforbeginners.com/systems-programming/how-to-use-fabric-in-python), [Documenation](http://www.fabfile.org/)
* Nginx: [Beginner's Config file](http://nginx.org/en/docs/beginners_guide.html), [Root vs Alias](https://blog.heitorsilva.com/en/nginx/diferenca-entre-root-e-alias-do-nginx/),
## Tests
If you wish to run at the test for this application all of the test are located
under the **test/** folder and can execute all of them by simply running:
```python3 -m unittest discover tests ```
from the root directory.
## Bugs
+ No known bugs at this time.
.....