How a4iko/family-teknik works
Family Teknik is a vehicle-service backend with customer, vehicle, service, and transaction CRUD, plus an RFM analysis and promotion-recommendation flow. The RFM route reads transactions, sends them to a Python service, and returns its analysis. A legacy browser script fetches the customer list; the React app shown is a starter screen and is not evidenced as connected to the backend. The map reflects sampled code and README notes; unsampled route details are not inferred.
Main entry points: db.js CRUD connection · app.py Python service · server.js RFM endpoint · script.js Customer list UI
Components 15
Backend API
- Customer list UI
frontend/js/script.js - API routes
backend/server.js - Customer CRUD
backend/server.js - Vehicle CRUD
backend/server.js - Service CRUD
backend/server.js - Transaction CRUD
backend/server.js - RFM endpoint
backend/server.js
Data Access
- CRUD connection
backend/db.js - RFM pool
backend/db_rfm.js - MySQL database
RFM Analysis
- Python service
AI/app.py - RFM calculation
AI/rfm.py - Customer segments
AI/recomendation.py - Promo recommendation
AI/recomendation.py
Other components
- Browser user
Connections 14
- Browser user → Customer list UI: views
frontend/js/script.js - Customer list UI → API routes: fetches customers
frontend/js/script.js - API routes → CRUD connection: uses CRUD queries
backend/server.js - Customer CRUD → CRUD connection: queries
backend/server.js - Vehicle CRUD → CRUD connection: queries
backend/server.js - Service CRUD → CRUD connection: queries
backend/server.js - Transaction CRUD → CRUD connection: queries
backend/server.js - CRUD connection → MySQL database: connects
backend/db.js - RFM endpoint → RFM pool: reads transactions
backend/server.js - RFM pool → MySQL database: connects
backend/db_rfm.js - RFM endpoint → Python service: posts transactions
backend/server.js - Python service → RFM calculation: calculates RFM
AI/app.py - Python service → Customer segments: determines segment
AI/app.py - Python service → Promo recommendation: gets recommendation
AI/app.py