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

https://github.com/pythoninthegrass/qaas

Quotes as a Service (qaas) returns a random quote from a list of quotes.
https://github.com/pythoninthegrass/qaas

Last synced: 7 months ago
JSON representation

Quotes as a Service (qaas) returns a random quote from a list of quotes.

Awesome Lists containing this project

README

          

# qaas

Quotes as a Service (qaas) returns a random quote from a list of quotes.

## Minimum Requirements
* [Python 3.11.6](https://www.python.org/downloads/release/python-3116/)
* [Pip](https://pip.pypa.io/en/stable/installing/)

## Recommended Requirements
* [Poetry](https://python-poetry.org/docs/#installation)
* [Docker](https://docs.docker.com/get-docker/)
* [asdf](https://asdf-vm.com/#/core-manage-asdf-vm)
```bash
# install python
asdf plugin add python
asdf install python 3.11.6

# install poetry
asdf plugin add poetry
asdf install poetry 1.7.1
```

## Quickstart
* Python
```bash
# create virtual environment
python -m venv .venv
source .venv/bin/activate

# install requirements
python -m pip install -r requirements.txt

# run the app
python app.py
```
* Python + Poetry
```bash
# install requirements
poetry install

# run the app
poetry run python app.py
```
* Docker
```bash
# build the image
docker build -t qaas .

# run the image
docker run -p 8000:8000 qaas # stop via ctrl+c

# run the image in detached mode
docker run -d -p 8000:8000 qaas

# stop the container
docker stop
```

## TODO
* [Issues](https://github.com/pythoninthegrass/qaas/issues)

## Further Reading
[Deploy a Flask App | Render Docs](https://render.com/docs/deploy-flask)