/fuzzy-lamp

A simple example of how to use docker for a Python Web App

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

fuzzy-lamp

A Flask Hello World example

Prerequisites

This application installs and runs with poetry. If you don't have it, please follow Installation Guide. You also can install it running the following command: python3 -m pip install poetry --user

Install

poetry install

Run

Copy environment variables from env.dist.

cp env.dist .env

(If you came from v0.0.3 do it again to update Environment Variables)

Build docker image.

docker-compose build

Run the app using docker-compose instead of docker.

docker-compose up

Run without Docker

The run the Flask Development server using poetry

poetry run flask run --host=0.0.0.0