Quotes as a Service (qaas) returns a random quote from a list of quotes.
- Poetry
- Docker
- asdf
# install python asdf plugin add python asdf install python 3.11.6 # install poetry asdf plugin add poetry asdf install poetry 1.7.1
- Python
# 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
# install requirements poetry install # run the app poetry run python app.py
- Docker
# 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 <container_id>