Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Credenciales de la API SI3 del Banco Central de Chile (https://si3.bcentral.cl).
# Server-only: se leen exclusivamente en Route Handlers / lib server-side.
# Nunca prefijar con NEXT_PUBLIC_ (eso las expondría al navegador).
BCENTRAL_USER=
BCENTRAL_PASS=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ yarn-error.log*

# env files (can opt-in for committing if needed)
.env*
!.env.example

# vercel
.vercel
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ Requisitos: Node 26+, npm.

```bash
npm install
cp .env.example .env.local
npm run dev
```

Abrir [http://localhost:3000](http://localhost:3000). No se necesitan variables de entorno: la app consulta `https://mindicador.cl/api` directamente desde sus propios Route Handlers.
Completar `.env.local` con `BCENTRAL_USER`/`BCENTRAL_PASS` — credenciales de la API SI3 del Banco Central de Chile (requiere registro en [si3.bcentral.cl](https://si3.bcentral.cl)). Son server-only: se leen únicamente en Route Handlers/lib del lado del servidor, nunca en componentes cliente.

Abrir [http://localhost:3000](http://localhost:3000).

Otros scripts disponibles:

Expand Down
Loading