diff --git a/.gitignore b/.gitignore index b694934..dd1e567 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.venv \ No newline at end of file +.venv +TODO.md \ No newline at end of file diff --git a/app.py b/app.py index 812c9f7..bd64123 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,19 @@ +from flask import Flask import psycopg2 as sql + +HOST, PORT = "0.0.0.0", 8000 +app = Flask(__name__) + sql.connect( dbname="database", user="user", password="password", host="localhost" -) \ No newline at end of file +) + +@app.route("/") +def index(): + return "Hello World" + +if __name__=="__main__": + app.run(host=HOST, port=PORT) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d496406 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +blinker==1.9.0 +click==8.3.1 +Flask==3.1.2 +itsdangerous==2.2.0 +Jinja2==3.1.6 +MarkupSafe==3.0.3 +psycopg2-binary==2.9.11 +Werkzeug==3.1.3