mirror of
https://github.com/Dasemu/si-no-o-indiferente.git
synced 2026-11-26 23:36:25 +00:00
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>
35 lines
917 B
Markdown
35 lines
917 B
Markdown
# Frontend — Historias Incompletas
|
|
|
|
App React + Vite. Se empaqueta como sitio web y, con Capacitor, como APK
|
|
Android.
|
|
|
|
## Desarrollo
|
|
|
|
```bash
|
|
npm install
|
|
cp .env.example .env # VITE_API_URL apuntando a tu backend
|
|
npm run dev
|
|
```
|
|
|
|
## Build web
|
|
|
|
```bash
|
|
npm run build # genera dist/
|
|
```
|
|
|
|
## APK (Capacitor)
|
|
|
|
Ver instrucciones completas en el [README raíz](../README.md#frontend-apk-con-capacitor).
|
|
Resumen: `npm run cap:sync` (build + `cap sync android`) y después
|
|
`npm run android:open` o `cd android && ./gradlew assembleDebug` con Android
|
|
SDK/JDK instalados.
|
|
|
|
## Estructura relevante
|
|
|
|
- `src/api.ts` — obtiene el mazo de historias del backend, con fallback a
|
|
cache local y al set default embebido.
|
|
- `src/data/defaultStories.json` — historias por defecto (contenido
|
|
original).
|
|
- `src/screens/` — Home, selector de historia y vista del narrador.
|
|
- `capacitor.config.ts` — config de la app nativa.
|