Prerequisites
Before installing Sistema Financiero, ensure you have the following prerequisites installed on your system:Node.js 20+
Download from nodejs.org
npm or yarn
Included with Node.js installation
Git
For cloning the repository
Code Editor
VS Code, WebStorm, or your preferred editor
Verify Node.js Installation
Check that Node.js and npm are installed correctly:Terminal
Sistema Financiero requires Node.js 20 or higher due to Next.js 15 dependencies.
Installation Steps
Clone the Repository
Clone the Sistema Financiero repository from GitHub:
Terminal
If you prefer SSH, use:
git clone [email protected]:danielcarreon/sistema-financiero-app.gitInstall Dependencies
Install all required npm packages:This will install all dependencies defined in
Terminal
package.json, including:- Next.js 15.5.4 (React framework)
- Supabase client libraries
- Chart.js for data visualization
- Tailwind CSS 4 for styling
- TypeScript 5 for type safety
Installation typically takes 2-5 minutes depending on your internet connection.
Dependency Overview
Sistema Financiero uses the following key dependencies:Core Framework
| Package | Version | Purpose |
|---|---|---|
next | 15.5.4 | React framework with App Router and API routes |
react | 19.1.0 | UI library for building components |
react-dom | 19.1.0 | React rendering for web |
typescript | ^5 | Type-safe JavaScript |
Backend & Database
| Package | Version | Purpose |
|---|---|---|
@supabase/supabase-js | ^2.58.0 | PostgreSQL database client |
UI & Styling
| Package | Version | Purpose |
|---|---|---|
tailwindcss | ^4 | Utility-first CSS framework |
@tailwindcss/typography | ^0.5.19 | Typography plugin for Tailwind |
next-themes | ^0.4.6 | Dark mode support |
lucide-react | ^0.544.0 | Icon library |
Data Visualization
| Package | Version | Purpose |
|---|---|---|
chart.js | ^4.5.0 | Charting library |
react-chartjs-2 | ^5.3.0 | React wrapper for Chart.js |
Content & Markdown
| Package | Version | Purpose |
|---|---|---|
react-markdown | ^10.1.0 | Markdown rendering |
remark-gfm | ^4.0.1 | GitHub Flavored Markdown support |
mermaid | ^11.12.0 | Diagram and flowchart rendering |
Project Structure
After installation, your project structure will look like this:Development Scripts
After installation, you can use these npm scripts:Troubleshooting
Common Installation Issues
Error: Node version too old
Error: Node version too old
Problem:
The engine "node" is incompatible with this module.Solution: Upgrade to Node.js 20 or higher:Error: npm install fails with EACCES
Error: npm install fails with EACCES
Problem: Permission denied when installing packages globally.Solution: Fix npm permissions or use a Node version manager:
Error: Module not found after installation
Error: Module not found after installation
Problem: TypeScript can’t find installed modules.Solution: Clear cache and reinstall:
Slow installation on Windows
Slow installation on Windows
Problem: npm install takes 10+ minutes.Solution: Disable Windows Defender real-time scanning for node_modules:
- Open Windows Security
- Go to Virus & threat protection settings
- Add exclusion for your project’s
node_modulesfolder
Next Steps
Now that you’ve installed Sistema Financiero, proceed to:Supabase Configuration
Set up your PostgreSQL database
Environment Variables
Configure your environment secrets