Add minimal flask server
This commit is contained in:
parent
4b79c6c8a4
commit
aee29baad0
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.vscode/
|
||||
build/
|
||||
node_modules/
|
||||
node_modules/
|
||||
venv/
|
||||
*.pyc
|
9
srv/Makefile
Normal file
9
srv/Makefile
Normal 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
|
8
srv/ebermergen/__init__.py
Normal file
8
srv/ebermergen/__init__.py
Normal 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
2
srv/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
flask==1.1.1
|
||||
python-dotenv==0.10.3
|
Loading…
Reference in New Issue
Block a user