Add minimal flask server

This commit is contained in:
Alfred Melch 2020-01-03 01:25:48 +01:00
parent 4b79c6c8a4
commit aee29baad0
5 changed files with 24 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
.vscode/
build/
node_modules/
node_modules/
venv/
*.pyc

2
srv/.env Normal file
View File

@ -0,0 +1,2 @@
FLASK_APP=ebermergen
FLASK_ENV=development

9
srv/Makefile Normal file
View File

@ -0,0 +1,9 @@
venv:
python3 -m venv venv
./venv/bin/pip install -U pip wheel setuptools
install:
./venv/bin/pip install -r requirements.txt
run:
./venv/bin/flask run --host 0.0.0.0

View File

@ -0,0 +1,8 @@
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello World'

2
srv/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
flask==1.1.1
python-dotenv==0.10.3