flask + pip thing

This commit is contained in:
2025-11-27 16:13:12 -08:00
parent 50b114b33e
commit 96994223df
3 changed files with 23 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.venv .venv
TODO.md

12
app.py
View File

@@ -1,7 +1,19 @@
from flask import Flask
import psycopg2 as sql import psycopg2 as sql
HOST, PORT = "0.0.0.0", 8000
app = Flask(__name__)
sql.connect( sql.connect(
dbname="database", dbname="database",
user="user", user="user",
password="password", password="password",
host="localhost" host="localhost"
) )
@app.route("/")
def index():
return "Hello World"
if __name__=="__main__":
app.run(host=HOST, port=PORT)

8
requirements.txt Normal file
View File

@@ -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