From 12c1a2d206acc7dcdbce96c690996b65efa61dfc Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Tue, 18 May 2021 11:45:44 +0200 Subject: [PATCH] Added basic starter app --- Makefile | 5 +++-- app/__main__.py | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cdbab9c..1c24a0a 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,7 @@ clean: .PHONY: clean -# Run the Flask server -# TODO +## Starting the server +### Run the Quart server run: venv + @ '$(VENV)'/bin/python app diff --git a/app/__main__.py b/app/__main__.py index e69de29..787d6a4 100644 --- a/app/__main__.py +++ b/app/__main__.py @@ -0,0 +1,9 @@ +from quart import Quart + +app = Quart("jos") + +@app.route("/") +async def hello(): + return "hello" + +app.run()