How kushalsingh2003/cloudmart works
CloudMart is a serverless e-commerce application with an admin web dashboard. The main workflow is an API request through authorization to product or order handling and MySQL; order and low-stock events support notifications, while a scheduled report function exports sales data to S3. The dashboard also reads application data directly. The README documents the broader AWS layout and capabilities; sampled code confirms selected database access and initialization details, but not all runtime wiring.
Main entry points: data-stack.yaml RDS MySQL · application-stack.yaml API Gateway · report/lambda_function.py Sales report function · authorizer/lambda_function.py Request authorizer
Components 18
API and commerce
- API Gateway
cloudformation/application-stack.yaml - Request authorizer
lambdas/authorizer/lambda_function.py - Product operations
lambdas/product/lambda_function.py - Order operations
lambdas/order/lambda_function.py
Data services
- RDS MySQL
cloudformation/data-stack.yaml - Schema initializer
lambdas/db_init/lambda_function.py - Parameter Store
cloudformation/application-stack.yaml
Reporting and alerts
- Report scheduler
cloudformation/application-stack.yaml - Sales report function
lambdas/report/lambda_function.py - Reports bucket
cloudformation/application-stack.yaml - EventBridge
cloudformation/application-stack.yaml - SNS notifications
cloudformation/application-stack.yaml
Admin dashboard
- Flask dashboard
dashboard/app.py - Dashboard charts
dashboard/static/js/dashboard.js - 3D visualization
dashboard/static/js/cloudmart-3d.js
Other components
- API client
- Email subscriber
- Dashboard admin
Connections 15
- API client → API Gateway: sends requests
README.md - API Gateway → Request authorizer: authorizes
README.md - API Gateway → Product operations: routes product requests
README.md - API Gateway → Order operations: routes order requests
README.md - Request authorizer → RDS MySQL: checks customer records
README.md - Product operations → RDS MySQL: manages products
README.md - Order operations → RDS MySQL: manages orders and stock
README.md - Schema initializer → RDS MySQL: initializes schema
lambdas/db_init/lambda_function.py - Report scheduler → Sales report function: triggers daily report
README.md - Sales report function → RDS MySQL: reads sales data
README.md - Sales report function → Reports bucket: uploads CSV reports
README.md - EventBridge → SNS notifications: dispatches low-stock events
README.md - SNS notifications → Email subscriber: sends notifications
README.md - Dashboard admin → Flask dashboard: uses dashboard
README.md - Flask dashboard → RDS MySQL: queries dashboard data
dashboard/app.py