## New Files - .env.example: Environment variables template - .env: Local development config (API URL: localhost:3021) - src/services/auth/auth.api.ts: Authentication API service - src/hooks/useAuth.ts: React Query hooks for auth - src/pages/auth/LoginPage.tsx: Functional login page ## Modified Files - src/App.tsx: Use LoginPage instead of placeholder - src/hooks/index.ts: Export useAuth hook ## Features - Login with email/password - JWT token management - Automatic token refresh - Error handling with toast notifications - Zustand + React Query integration Build: PASSED Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
372 B
Plaintext
14 lines
372 B
Plaintext
# ===========================================================
|
|
# ERP CONSTRUCCION - CONFIGURACION FRONTEND
|
|
# ===========================================================
|
|
# Copiar este archivo a .env y ajustar valores
|
|
|
|
# API Backend URL
|
|
VITE_API_URL=http://localhost:3021/api/v1
|
|
|
|
# Tenant ID para desarrollo
|
|
VITE_TENANT_ID=default-tenant
|
|
|
|
# Ambiente
|
|
VITE_APP_ENV=development
|