Prerequisites
Before you begin, make sure you have:- Node.js 20+ installed (Download here)
- Git installed
- A Supabase account (Sign up free)
- (Optional) An OpenRouter API key for AI features (Get one here)
Installation
Install Dependencies
Install all required packages:This will install Next.js, Supabase client, Chart.js, and all other dependencies.
Set Up Supabase Database
- Go to supabase.com and create a new project
- Navigate to the SQL Editor in your Supabase dashboard
- Copy and paste this schema:
- Click Run to create the table
Configure Environment Variables
Create a Update with your Supabase credentials:
.env.local file in the project root:Find your Supabase URL and anon key in Project Settings → API in your Supabase dashboard.
Start the Development Server
Run the development server:Open http://localhost:3000 in your browser. You should see the Sistema Financiero dashboard!
Register Your First Transaction
Now that Sistema Financiero is running, let’s add your first transaction.Option 1: Manual Entry
- Click Registro in the navigation
- Fill out the form:
- Tipo: Select “Gasto” (Expense)
- Monto: Enter
50.00 - Categoría: Select “Alimentación” (Food)
- Descripción: Enter “Lunch at restaurant”
- Método de pago: Select “Tarjeta” (Card)
- Click Registrar Transacción
- Go back to the Dashboard to see your transaction reflected in the KPIs and chart!
Option 2: AI Chat (If OpenRouter is configured)
- Click Agente IA in the navigation
- Type a message like:
- The AI will automatically extract the details and register the transaction
- Check the dashboard to see it appear instantly!
Verify Everything Works
Go to the Dashboard and you should see:- ✅ Total Gastos: Shows your expense amount
- ✅ Balance: Shows negative balance (expenses - income)
- ✅ Transaction Table: Lists your transaction with all details
- ✅ Trend Chart: Displays your spending over time
Next Steps
Explore Features
Learn about all the features available
Configure Supabase
Set up authentication and storage
Deploy to Production
Deploy to Vercel or your preferred platform
API Reference
Integrate with the REST API
Need Help?
I see '$0.00' on the dashboard
I see '$0.00' on the dashboard
Make sure you’ve registered at least one transaction. The dashboard starts empty until you add data.
AI chat isn't working
AI chat isn't working
Verify that you’ve set
OPENROUTER_API_KEY in your .env.local file. Without it, AI features won’t work.Database connection errors
Database connection errors
Double-check your
NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY in .env.local. Make sure there are no extra spaces.