- Node.js 18+ → descargar en nodejs.org
- Cuenta gratis en netlify.com
- Cuenta gratis en github.com
Abre una terminal dentro de la carpeta gastos-app y ejecuta:
npm installnpm run devAbre http://localhost:5173 en tu navegador.
npm run buildEsto crea una carpeta dist/ con los archivos optimizados.
- Ve a netlify.com → Log in → "Add new site"
- Elige "Deploy manually"
- Arrastra la carpeta
dist/al área de drop - ¡Listo! Netlify te da una URL tipo
https://abc123.netlify.app
-
Sube la carpeta
gastos-app/a GitHub:git init git add . git commit -m "primer deploy" git remote add origin https://github.com/TU_USUARIO/gastos-app.git git push -u origin main
-
Ve a netlify.com → "Add new site" → "Import from Git"
-
Conecta tu cuenta de GitHub
-
Selecciona el repositorio
gastos-app -
Configura:
- Build command:
npm run build - Publish directory:
dist
- Build command:
-
Click "Deploy site"
Cada vez que hagas git push, Netlify actualiza la app automáticamente.
Una vez tengas tu URL de Netlify (ej: https://mis-gastos.netlify.app):
- Ve a dropbox.com/developers/apps
- Abre tu app → pestaña Settings
- En "Redirect URIs" agrega:
https://mis-gastos.netlify.app - Click Save
- Abre la URL en Chrome en tu Android
- Aparece un banner "Agregar a pantalla de inicio"
- O menú ⋮ → "Instalar app"
- ¡Se instala como app nativa con ícono!