init: minimal Flask app

This commit is contained in:
2026-06-13 11:29:47 +04:00
commit 77dff4d3d4
5 changed files with 40 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
FLASK_ENV=production
PORT=5000
+5
View File
@@ -0,0 +1,5 @@
__pycache__/
*.pyc
.env
venv/
.venv/
+14
View File
@@ -0,0 +1,14 @@
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/health")
def health():
return {"status": "ok"}
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)
+4
View File
@@ -0,0 +1,4 @@
flask>=3.0
gunicorn>=22.0
python-docx>=1.1
requests>=2.32
+15
View File
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Contracts App</title>
<style>
body { font-family: sans-serif; max-width: 600px; margin: 100px auto; text-align: center; }
h1 { color: #333; }
</style>
</head>
<body>
<h1>Contracts App 🚀</h1>
<p>Сервис работает.</p>
</body>
</html>