Initial commit: BI Agentes platform

Independent dashboard for CambioReal agents with local SQLite auth
and read-only RDS connection. Features login, per-agent transaction
filtering, KPIs, charts (Chart.js), and detailed transaction table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 15:47:07 -05:00
commit 39900c3fe8
14 changed files with 3006 additions and 0 deletions

15
src/db-rds.js Normal file
View File

@@ -0,0 +1,15 @@
/**
* MySQL pool — read-only no RDS (cambio_db)
*/
const mysql = require('mysql2/promise');
const pool = mysql.createPool({
host: process.env.MYSQL_URL,
user: process.env.USER_MYSQL,
password: process.env.PW_MYSQL,
database: 'cambio_db',
waitForConnections: true,
connectionLimit: 10,
});
module.exports = pool;