How nuelstarkops/web-x-db_bastion-admin works
This repository demonstrates a browser-based signup/login product backed by AWS Lambda and a private MariaDB database. The user submits credentials through the static frontend; API Gateway routes requests to the signup or login handler, which uses the database connection module and returns an HTTP response. The README also documents S3/CloudFront hosting and the VPC, subnet, gateway, route-table, and bastion setup. Those infrastructure relationships are documented rather than implemented in sampled source, so their edges cite the README.
Main entry points: README.md API Gateway · login.js Login handler · signup.js Signup handler · auth.js Login and signup
Components 15
Web client
- Login and signup
frontend/auth.js - Browser token state
frontend/auth.js
Authentication API
- API Gateway
README.md - Login handler
backend/login.js - Signup handler
backend/signup.js - HTTP responses
backend/utils.js
User data
- DB connection pool
backend/db.js - MariaDB user store
README.md
Private network
- VPC
README.md - Public and private subnets
README.md - Gateways and routes
README.md - Bastion host
README.md - Private DB EC2
README.md
Web hosting
- S3 and CloudFront
README.md
Other components
- Visitor
Connections 21
- Visitor → Login and signup: submits credentials
frontend/auth.js - Login and signup → API Gateway: posts requests
frontend/auth.js - API Gateway → Login handler: routes login
README.md - API Gateway → Signup handler: routes signup
README.md - Login handler → DB connection pool: gets connection
backend/login.js - Signup handler → DB connection pool: gets connection
backend/signup.js - Login handler → MariaDB user store: reads users
backend/login.js - Signup handler → MariaDB user store: checks and inserts
backend/signup.js - DB connection pool → MariaDB user store: connects to
README.md - Login handler → HTTP responses: builds responses
backend/login.js - Signup handler → HTTP responses: builds responses
backend/signup.js - Login and signup → Browser token state: stores or clears token
frontend/auth.js - Login and signup → S3 and CloudFront: served by
README.md - VPC → Public and private subnets: contains
README.md - Public and private subnets → Gateways and routes: uses routes
README.md - Public and private subnets → Bastion host: public subnet hosts
README.md - Public and private subnets → Private DB EC2: private subnet hosts
README.md - Bastion host → Private DB EC2: provides SSH access
README.md - Private DB EC2 → MariaDB user store: runs database
README.md - API Gateway → Login handler: HTTP API integration
- API Gateway → Signup handler: HTTP API integration