Live demo: connexx.mindvault-ai.com
MVAI Connexx is een production-ready multi-tenant platform voor logistieke data borging en procesoptimalisatie. Het systeem biedt veilige, geΓ―soleerde omgevingen voor meerdere klanten met professioneel dashboard, analytics en export functionaliteit.
- Access code authenticatie voor klanten en admins
- Session management met 24-uur expiratie
- Multi-tenant isolatie - elke klant ziet alleen eigen data
- IP tracking via X-Forwarded-For headers (proxy-aware)
- Real-time data input via terminal interface
- Live statistieken (totaal logs, vandaag, deze week)
- Data visualisatie en overzichten
- CSV export van alle data
- Zoekfunctionaliteit in eigen logs
- Mobile-optimized UI (Samsung S23 Plus getest)
- Overzicht alle klanten en data
- Klantenbeheer (toevoegen, activeren/deactiveren)
- Automatische access code generatie
- Globale statistieken en analytics
- Top 5 actiefste klanten
- Zoeken in klanten en logs
- CSV export van alle data
- Modern dark theme (MVAI branding)
- Mobile-first responsive design
- Terminal-style data input interface
- Clean en intuitive navigation
- Samsung S23 Plus geoptimaliseerd
- 6 Pricing Tiers (Demo, Particulier, MKB, Starter, Professional, Enterprise)
- Gumroad integratie - PayPal backend (info@mindvault-ai.com)
- Automatic tier activation via webhooks
- Usage tracking met real-time limits
- Self-service upgrades/downgrades
- Email notifications (welcome, upgrades, alerts)
- Stripe ready (voor later, na KVK)
- SQLite database met multi-tenant schema
- Automatische migratie van JSON naar SQLite
- Efficient indexing voor performance
- Foreign key constraints voor data integriteit
# Clone repository
git clone https://github.com/Mind-Vault-AI/mvai-connexx.git
cd mvai-connexx
# Installeer dependencies
pip install -r requirements.txtVoor een snelle demo met fictieve bedrijven:
python seed_demo.pyDit maakt aan:
- 1 admin account
- 5 demo klanten (TransLog Nederland, VanderMeer Logistics, etc.)
- 50+ fictieve log entries
Login credentials worden geprint na seeding!
# Development
python app.py
# Production (met Gunicorn)
gunicorn --bind 0.0.0.0:5000 app:appOpen browser: http://localhost:5000
Als je bestaande mvai_data.json hebt:
python migrate.pyDit migreert alle JSON logs naar SQLite en maakt een backup.
mvai-connexx/
βββ app.py # Flask applicatie (multi-tenant)
βββ database.py # Database module (SQLite)
βββ migrate.py # JSON β SQLite migratie script
βββ seed_demo.py # Demo data seeding
βββ requirements.txt # Python dependencies
βββ Dockerfile # Docker container
βββ templates/
β βββ login.html # Login pagina
β βββ customer_dashboard.html
β βββ customer_logs.html
β βββ customer_search.html
β βββ admin_dashboard.html
β βββ admin_customers.html
β βββ admin_customer_detail.html
β βββ admin_create_customer.html
β βββ admin_logs.html
β βββ admin_search.html
β βββ error.html
βββ mvai_connexx.db # SQLite database (aangemaakt bij eerste run)
id- Primary keyname- Bedrijfsnaam (unique)access_code- Unieke login codestatus- active/inactivecontact_email- Contact emailcompany_info- Extra info/notitiescreated_at- Timestamp
id- Primary keycustomer_id- Foreign key naar customersip_address- Client IP (X-Forwarded-For aware)timestamp- Log tijdstipdata- JSON datametadata- Extra metadata (optioneel)
id- Primary keyusername- Admin gebruikersnaamaccess_code- Admin login codecreated_at- Timestamp
GET /- Redirect naar login/dashboardGET /login- Login paginaPOST /login- Login verwerkingGET /logout- Uitloggen
GET /dashboard- Customer dashboardPOST /api/save- Data opslaan (backward compatible)GET /customer/logs- Alle logs bekijkenGET /customer/export/csv- CSV exportGET /customer/search- Zoeken in logs
GET /admin- Admin dashboardGET /admin/customers- KlantenoverzichtGET /admin/customer/<id>- Klant detailsGET /admin/customer/create- Nieuwe klant aanmakenPOST /admin/customer/<id>/toggle-status- Status toggleGET /admin/logs- Alle logsGET /admin/search- ZoekenGET /admin/export/all-csv- Volledige CSV export
| Platform | Status | URL |
|---|---|---|
| Hostinger VPS | β Primair | connexx.mindvault-ai.com |
| Render | β Actief | via render.yaml |
π Volledige deployment handleiding: DEPLOY.md
- Hostinger VPS β push naar
mainβ GitHub Actions (.github/workflows/deploy-hostinger.yml) deployt automatisch via SSH. - Render β push naar
mainβ Render deployt automatisch viarender.yaml. - Benodigde GitHub Secrets:
VPS_HOST,VPS_USER,VPS_SSH_KEY
docker build -t mvai-connexx .
docker run -p 5000:5000 mvai-connexx- β Geen hardcoded credentials - access codes worden random gegenereerd
- β Session-based authentication met secure cookies
- β Multi-tenant data isolatie op database niveau
- β IP tracking voor audit trail
- β Input sanitization via Flask
- β SQL injection protection via parameterized queries
- β XSS protection via template escaping
- Login als admin
- Ga naar "Klanten" β "Nieuwe Klant"
- Vul bedrijfsnaam in (verplicht)
- Optioneel: email en bedrijfsinfo
- Klik "Klant Aanmaken"
- Access code wordt automatisch gegenereerd en getoond!
- Deel deze code veilig met de klant
- Ga naar klant detail pagina
- Klik "Deactiveer Klant"
- Klant kan niet meer inloggen (data blijft behouden)
Per klant (admin):
- Ga naar klant detail β CSV export knop
Alle data (admin):
- Admin Dashboard β "Exporteer CSV"
Per klant (customer):
- Customer Dashboard β "Exporteer CSV"
β GEΓMPLEMENTEERD (production-ready):
- β Pricing tiers - 6 tiers (Demo, Particulier, MKB, Starter, Professional, Enterprise)
- β Payment processing - Gumroad integratie (PayPal backend via info@mindvault-ai.com)
- β Subscriptie logica - Upgrade/downgrade met automatic tier activation
- β Email notificaties - SMTP met professional HTML templates (welcome, upgrade, alerts)
Payment Strategie:
- π― NU: Gumroad β PayPal (actief na $100 verkopen) - geen KVK vereist
- π LATER: Stripe (zodra KVK nummer beschikbaar) - lagere fees
Mogelijk in toekomst:
- π PDF export met grafieken
- π± Progressive Web App (PWA)
- π Real-time notificaties
- π Geavanceerde analytics dashboards
- π€ AI-powered insights (basis AI Assistant al aanwezig)
# Stop alle processen
pkill -f "python app.py"
# Verwijder database en seed opnieuw
rm mvai_connexx.db
python seed_demo.py# Vind proces op poort 5000
lsof -i :5000
# Kill proces
kill -9 <PID># Herinstalleer dependencies
pip install --upgrade -r requirements.txtΒ© 2025 Mind Vault AI. All Rights Reserved.
Voor vragen of issues:
- Email: info@mindvault-ai.com
- GitHub Issues: https://github.com/Mind-Vault-AI/mvai-connexx/issues
Built with β€οΈ by Mind Vault AI
Logistic Intelligence | Validatie, Borging & Procesoptimalisatie