How ajithselvam/3-tier-app-login works
This is a Kubernetes-hosted login and signup application. A browser submits signup or login details through the frontend; after login, the frontend stores the JWT and requests the authenticated profile. The backend validates credentials, hashes signup passwords, issues and verifies JWTs, and uses a MySQL connection pool for user data. The README documents NGINX API proxying and Kubernetes deployment resources; manifest-level wiring is not shown in the sampled source, so it is represented only as a deployment subsystem.
Main entry points: app.js Login and signup UI · server.js Signup handler · db.js MySQL connection pool · 05-mysql-deployment.yaml MySQL user store
Components 9
Browser experience
- Login and signup UI
frontend/app.js - NGINX frontend proxy
frontend/nginx.conf
Authentication API
- Signup handler
backend/server.js - Login and JWT
backend/server.js - Profile authentication
backend/server.js
User data
- MySQL connection pool
backend/db.js - MySQL user store
k8s/05-mysql-deployment.yaml
Kubernetes platform
Other components
- Browser user
Connections 14
- Browser user → Login and signup UI: uses
README.md - Login and signup UI → NGINX frontend proxy: sends API requests
README.md - NGINX frontend proxy → Signup handler: proxies API
README.md - Login and signup UI → Signup handler: submits signup
frontend/app.js - Login and signup UI → Login and JWT: submits credentials
frontend/app.js - Login and signup UI → Profile authentication: requests profile
frontend/app.js - Signup handler → MySQL connection pool: queries and inserts
backend/server.js - Login and JWT → MySQL connection pool: loads user
backend/server.js - Profile authentication → MySQL connection pool: loads profile
backend/server.js - Signup handler → MySQL user store: stores account data
README.md - Login and JWT → MySQL user store: checks credentials
README.md - Profile authentication → MySQL user store: reads user data
README.md - MySQL connection pool → MySQL user store: connects to
backend/db.js - Kubernetes resources → NGINX frontend proxy: configures proxy
README.md