Primer commit limpio para Gitea

This commit is contained in:
2026-08-11 23:14:01 -05:00
commit d1999061ad
8 changed files with 70 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "app.py"]
+32
View File
@@ -0,0 +1,32 @@
import os
import sqlite3
from flask import Flask, send_from_directory
app = Flask(__name__)
DB_PATH = os.environ.get('DB_PATH', '/app/db/pendientes.db')
def init_db():
os.makedirs(os.path.dirname(DB_PATH), exist_ok=True)
conn = sqlite3.connect(DB_PATH)
conn.execute('''
CREATE TABLE IF NOT EXISTS pendientes (
id INTEGER PRIMARY KEY AUTOINCREMENT,
descripcion TEXT NOT NULL,
fecha TEXT NOT NULL,
estado TEXT NOT NULL,
urgencia TEXT NOT NULL
)
''')
conn.commit()
conn.close()
@app.route('/')
def index():
return send_from_directory('/app/frontend', 'index.html')
if __name__ == '__main__':
init_db()
app.run(host='0.0.0.0', port=5000)
+1
View File
@@ -0,0 +1 @@
Flask==3.0.0
BIN
View File
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
version: '3.8'
services:
app:
build: ./backend
ports:
- "5000:5000"
volumes:
- ./db:/app/db
- ./frontend:/app/frontend
environment:
- DB_PATH=/app/db/pendientes.db
+13
View File
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calendario y Pendientes</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Calendario y Pendientes</h1>
<script src="script.js"></script>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
// Lógica del calendario y pendientes
+1
View File
@@ -0,0 +1 @@
/* Estilos del calendario y pendientes */