This commit is contained in:
2023-09-27 09:33:00 +02:00
parent 2de7f2fea1
commit 00d7456f89
6 changed files with 60 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
from flask import Flask
from app.config import settings
def create_app():
flaskapp = Flask(__name__)
with flaskapp.app_context():
from app import routes
return flaskapp
if __name__ == "__main__":
app = create_app()
app.config["Debug"] = True
app.config["MONGO_URI"] = settings["mongodb_uri"]
app.run()