How ghassenbz/clienta works
Clienta is a three-tier customer-management app: browser users view, search, create, update, and delete customers through a same-origin Express API backed by MySQL. The backend routes requests to customer operations, which validate data and query the database; startup also initializes the customer table from the schema. The repository includes a separate Terraform-based AWS deployment configuration. Deployment relationships below are limited to capabilities documented in the README; the Terraform source was not sampled.
Main entry points: main.tf Terraform configuration · app.js Express server · customer.js Customer routes · db.js MySQL pool
Components 16
Browser frontend
- Customer interface
app/frontend/index.html - Customer interactions
app/frontend/script.js
Application backend
- Express server
app/backend/app.js - Customer routes
app/backend/routes/customer.js - Customer operations
app/backend/controllers/customerController.js - MySQL pool
app/backend/db.js - Customer schema
app/database/db.sql
AWS deployment
- Terraform configuration
infra/main.tf - Compute module
infra/modules/compute/main.tf - Network module
infra/modules/network/main.tf - Security module
infra/modules/security/main.tf
Other components
- Browser user
- MySQL database
- Private S3 bucket
- App instance
- AWS environment
Connections 15
- Browser user → Customer interface: uses
README.md - Customer interface → Customer interactions: hosts
- Customer interactions → Customer routes: requests API
app/frontend/script.js - Express server → Customer routes: mounts API
app/backend/app.js - Customer routes → Customer operations: dispatches
app/backend/routes/customer.js - Customer operations → MySQL pool: queries
app/backend/controllers/customerController.js - Express server → MySQL pool: initializes database
app/backend/app.js - Express server → Customer schema: loads schema
app/backend/app.js - MySQL pool → MySQL database: connects
- Terraform configuration → Private S3 bucket: uploads archive
README.md - App instance → Private S3 bucket: reads archive
README.md - Terraform configuration → Compute module: uses module
- Terraform configuration → Network module: uses module
- Terraform configuration → Security module: uses module
- Terraform configuration → AWS environment: provisions resources