Create project skeleton.

This commit is contained in:
Patrick Jentsch 2019-07-03 10:31:23 +02:00
parent af4edbdb57
commit da8ab512a9
6 changed files with 22 additions and 0 deletions

2
.flaskenv Normal file
View File

@ -0,0 +1,2 @@
FLASK_APP=opaque.py
FLASK_ENV=development

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
__pycache__
venv

7
app/__init__.py Normal file
View File

@ -0,0 +1,7 @@
from flask import Flask
def create_app():
app = Flask(__name__)
return app

5
config.py Normal file
View File

@ -0,0 +1,5 @@
import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'

4
opaque.py Normal file
View File

@ -0,0 +1,4 @@
from app import create_app
app = create_app

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Flask==1.0.3
python-dotenv==0.10.3