Add Historias Incompletas: web+APK story game with Gemini-powered daily deck

Node/Express backend generates 5 lateral-thinking mystery stories a day via
Gemini and serves the latest batch; React/Vite frontend (Capacitor-wrapped
for Android) plays them pass-and-play style, falling back to a bundled set
of 16 original stories when the backend has nothing new or is unreachable.
Includes systemd/nginx deploy config for a Docker-less Debian LXC.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5 committed 2026-08-12 07:15:54 +00:00
1 parent de0dfec6af
commit 7f3e6cc839
97 files changed
+6803 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Puerto donde escucha la API
PORT=8787
# Origen permitido para CORS (la URL desde donde se sirve el frontend/PWA).
# Usa "*" solo en desarrollo.
CORS_ORIGIN=*
# API key de Google Gemini (https://aistudio.google.com/apikey)
GEMINI_API_KEY=
# Modelo de Gemini a usar para generar historias
GEMINI_MODEL=gemini-2.5-flash
# Cuantas historias nuevas generar por dia
STORIES_PER_DAY=5
# Carpeta donde se guardan las historias generadas (JSON), relativa al backend
DATA_DIR=./data
# Token secreto para poder disparar la generacion manualmente via POST /api/admin/generate
ADMIN_TOKEN=cambia-este-token