Comprehensive administrative tooling with ReactJS frontend and Python backend for financial transaction processing.
# Start both servers
.\start.ps1
# Or manually:
cd backend && python app.py # Port 5000
cd frontend && npm start # Port 3000
- Upload PDFs, EML, and MHTML files to Google Drive or local storage
- AI‑powered universal invoice data extraction via OpenRouter API
- Traditional vendor‑specific parsers as fallback (250+ formats)
- Searchable folder dropdown with auto‑selection
- Edit and approve transactions before persisting
- MySQL storage with metadata
- Process CSV bank statements (Rabobank format)
- Pattern matching for automatic account assignment
- Duplicate detection & filtering
- Bulk transaction import
- Process Airbnb/Booking.com revenue files
- Separate realized vs planned bookings
- Generate future revenue summaries
- Multi‑platform support
- AI‑powered pricing recommendations with business logic
- Historical vs recommended ADR comparison
- Quarterly summary tables per listing
- Monthly trend analysis with interactive charts
- Event‑based pricing uplifts
- Guest‑fee adjustments (child‑friendly)
- 14‑month pricing strategy generation
- Interactive dashboards with Recharts
- P&L statements & balance sheets
- BNB revenue analytics (violin/box plots)
- BNB returning‑guest analysis
- Aangifte IB (Income‑Tax) declarations with VW logic
- Excel/XLSX export
- Reference‑number validation
- Validate Google‑Drive URLs in transaction records
- Real‑time progress with dynamic progress bar
- Year & admin filtering
- Automatic file/folder URL resolution
- Manual update for broken links
- Gmail‑URL detection for manual verification
When sending a request to the OpenRouter API, include a tool_call_id field that is exactly 9 alphanumeric characters (a‑z, A‑Z, 0‑9).
Example:
{
"model": "meta-llama/llama-3.2-3b-instruct:free",
"messages": [...],
"tool_call_id": "a1B2c3D4E"
}If you generate the ID automatically, validate the length and character set before sending. A compliant ID prevents the 400 Provider returned error.
- MySQL: Main transaction storage
- Tables:
mutaties,bnb,bnbplanned,bnbfuture,pricing_recommendations,pricing_events,listings - Views:
vw_mutatiesfor reporting (VW logic) - Config:
.envfile with credentials - Pricing: AI insights storage & business‑logic pricing
Toggle between test & production using .env:
# Production (default)
TEST_MODE=false
DB_NAME=finance
FACTUREN_FOLDER_ID=your_production_folder_id
FACTUREN_FOLDER_NAME=Facturen
OPENROUTER_API_KEY=your_openrouter_api_key
# Test
TEST_MODE=true
TEST_DB_NAME=testfinance
TEST_FACTUREN_FOLDER_ID=your_test_folder_id
TEST_FACTUREN_FOLDER_NAME=testFacturenThe OpenRouter API powers AI features including invoice extraction and template validation:
- Create Account: Visit OpenRouter.ai and sign up
- Generate API Key: Navigate to your dashboard and create a new API key
- Configure: Add the key to your
.envfile:OPENROUTER_API_KEY=sk-or-v1-your-api-key-here
- Verify: The key should start with
sk-or-v1-and be approximately 64 characters
Features enabled by OpenRouter:
- Universal invoice data extraction (AI-powered)
- Template validation assistance
- Smart error analysis and auto-fix suggestions
- STR pricing optimization recommendations
Note: Some features will fall back to traditional methods if the API key is not configured.
- Automatic database and Google‑Drive folder switching
- Mode indicator displayed in all function headers
- Route & schema validation at startup
# Commit with timestamp:
.\scripts\setup\gitUpdate.ps1
# Commit with custom message:
.\scripts\setup\gitUpdate.ps1 "Your message here"myAdmin supports Dutch and English with comprehensive internationalization across the entire application.
- 🇳🇱 Dutch (nl) - Primary language (default)
- 🇬🇧 English (en) - Secondary language
Language Selector
- Located on Dashboard header (top-right)
- Switch between Dutch and English instantly
- No page refresh required
Persistent Preferences
- Language choice saved to browser (localStorage)
- Synced to AWS Cognito user profile
- Persists across devices and sessions
- New users inherit tenant's default language
Localized Formatting
- Dates: Dutch (19-02-2026) vs English (2/19/2026)
- Numbers: Dutch (1.234,56) vs English (1,234.56)
- Currency: Dutch (€1.234,56) vs English (€1,234.56)
Translated Content
- All UI elements (buttons, labels, menus, messages)
- All modules (Reports, Banking, STR, Admin)
- Error messages and validation
- Email templates (user invitations)
- 1,485 translation keys across 8 namespaces
âś… Complete Translation:
- Dashboard and navigation
- All report modules (Financial, BNB, STR)
- Banking processor (transaction management, filters, modals)
- STR processor (file upload, booking review, pricing, invoices)
- Admin modules (Tenant Management, User Management, Role Management, Health Check)
- Authentication pages (Login, Unauthorized)
- Error pages (404, 500, 503)
- Form validation and error messages
- Toast notifications and alerts
❌ Not Translated (by design):
- Chart of Accounts: Tenant-specific business data, already in tenant's preferred language
- Report Templates: Tenant-managed HTML templates (tenants create their own language versions)
- Excel Exports: Technical column names used in pivot table references
- Database Content: Tenant-specific business data (account names, descriptions)
Frontend:
- react-i18next for translation management
- 8 namespaces: common, auth, reports, str, banking, admin, errors, validation
- Type-safe translations with TypeScript
- date-fns for locale-aware date formatting
Backend:
- Flask-Babel for translation support
- X-Language header for API language selection
- User language stored in AWS Cognito custom attribute
- Tenant default language stored in database
Database:
tenants.default_languagecolumn (VARCHAR(5), default 'nl')- User language preference in Cognito
custom:preferred_language
Documentation (.kiro/specs/Common/Internationalization/):
DEVELOPER_GUIDE.md- Complete development guideFORMATTING_GUIDE.md- Date/number/currency formattingTRANSLATION_WORKFLOW.md- Translation processCOMPONENT_USAGE_PATTERNS.md- Component patterns and examplesTRANSLATION_KEY_CONVENTIONS.md- Naming conventions
Quick Start:
// Use translations in components
import { useTypedTranslation } from '../hooks/useTypedTranslation';
import { formatDate, formatNumber, formatCurrency } from '../utils/formatting';
function MyComponent() {
const { t, i18n } = useTypedTranslation('common');
return (
<div>
<h1>{t('myFeature.title')}</h1>
<p>{formatDate(new Date(), i18n.language)}</p>
<p>{formatNumber(1234.56, i18n.language)}</p>
<p>{formatCurrency(1234.56, i18n.language)}</p>
</div>
);
}Translation Completeness Check:
# Frontend (1,485 keys across 8 namespaces)
cd frontend
node scripts/check-translations.js
# Backend (11 keys)
cd backend
python scripts/check_translations.pyAdding New Translations:
- Add keys to both
frontend/src/locales/nl/{namespace}.jsonanden/{namespace}.json - Use
t('namespace:key')in components - Run completeness check to verify
- Test in both languages
Status: âś… Live in production (deployed February 19, 2026)
URLs:
- Frontend: https://petergeers.github.io/myAdmin/
- Backend: Railway (auto-deployed)
Testing: See PRODUCTION_TESTING_CHECKLIST.md for comprehensive testing guide
Vulture finds unused Python code. Flask route handlers are false positives (they're called by the WSGI server, not directly) so a whitelist file suppresses them.
# Run vulture with the whitelist
vulture backend/src/ backend/vulture_whitelist.py --min-confidence 60The whitelist (backend/vulture_whitelist.py) contains all Flask blueprint route handler function names and gunicorn configuration variables. Update it when adding new routes.
- Frontend: React, TypeScript, Chakra UI, Recharts, react-i18next
- Backend: Python, Flask, MySQL, Google‑Drive, Gmail APIs, Flask-Babel
- AI Integration: OpenRouter API (GPT‑3.5‑turbo) for invoice extraction
- Processing: PyPDF2, pdfplumber, pandas, openpyxl
- Pricing: Business logic + AI correction factors
- Export: HTML & XLSX (R script logic)
- Realtime: Server‑Sent Events for progress tracking
- i18n: react-i18next (frontend), Flask-Babel (backend), date-fns (formatting)