feat: major rewrite of the webserver

gets rid of __init__ and runserver in favor of new modular design
also introduces db model, first api endpoints, as well as their wrappers
This commit is contained in:
2025-05-11 01:30:32 +02:00
parent 96e2c53484
commit c1facf00fb
12 changed files with 532 additions and 72 deletions

View File

@@ -1,14 +1,5 @@
"""
This script runs the FlaskWebProject application using a development server.
Please see README.md for more tips on how to get your server running.
"""
from os import environ
from FlaskWebProject import app
if __name__ == '__main__':
HOST = environ.get('SERVER_HOST', 'localhost')
try:
PORT = int(environ.get('SERVER_PORT', '5555'))
except ValueError:
PORT = 5555
app.run(HOST, PORT)
print("runserver.py is obsolete. Please run your server with lewy.py.")