EPFL-ENAC / helloFlask

Hello World Flask app ready to run localy and on serve with docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Hello world project ready with docker

Tiny demo project that run a Flask hello app :

  • locally with Flask command (dev)
  • locally with Gunicorn (test)
  • locally or on server with Gunicorn inside Docker (prod)

Run the app

locally

Run the following commands :

make setup # only once
make generate-selfsigned-cert # only once

make run-dev # dev mode (Flask)
make run-prod # test mode (Gunicorn)
make run # prod mode (Gunicorn inside Docker)

on server

Run the following command :

make run # prod mode (Gunicorn inside Docker)

Stop the service :

docker-compose down

Check result

About

Hello World Flask app ready to run localy and on serve with docker


Languages

Language:Makefile 39.8%Language:Dockerfile 23.6%Language:Shell 19.3%Language:Python 17.4%