Pin & Penny expense tracker (web + expo-app)

This commit is contained in:
2026-09-18 16:09:05 +00:00
commit b394fd85a9
23 changed files with 8583 additions and 0 deletions

20
server.py Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env python3
"""Project runner: serves the expense tracker with zero dependencies."""
import functools
import http.server
import os
PORT = int(os.environ.get("PORT", "8000"))
HOST = os.environ.get("HOST", "0.0.0.0")
ROOT = os.path.dirname(os.path.abspath(__file__))
handler = functools.partial(
http.server.SimpleHTTPRequestHandler, directory=ROOT
)
server = http.server.ThreadingHTTPServer((HOST, PORT), handler)
print(
"Pin & Penny running at http://%s:%d (open http://localhost:%d in your browser)"
% (HOST, PORT, PORT),
flush=True,
)
server.serve_forever()