How sriteja21/cloudmart works
CloudMart is a serverless commerce application, with customer and administrator workflows, product and inventory management, order processing, a dashboard, and reporting. HTTP-triggered Lambda handlers implement the API domains; the dashboard also accesses the database directly. A schema initializer creates the database structure, while reporting exports data to object storage. The excerpts show individual handlers’ database and cloud-service interactions, but do not establish how infrastructure routes requests or connects these handlers, so those links are omitted.
Main entry points: app.py Admin dashboard · report/lambda_function.py Report generation · init-schema/lambda_function.py Schema initializer · product/lambda_function.py Product and inventory
Components 15
Access and dashboard
- Admin dashboard
src/dashboard/app.py - Dashboard views
src/dashboard/templates - Request authorization
src/authorizer/lambda_function.py
Commerce APIs
- Customer management
src/customer/lambda_function.py - Product and inventory
src/product/lambda_function.py - Order processing
src/order/lambda_function.py
Data and reports
- Report generation
src/report/lambda_function.py - MySQL database
- Report storage
- Parameter Store
- EventBridge
Database setup
- Schema initializer
src/init-schema/lambda_function.py - Database schema
src/init-schema/schema.sql
Other components
- Administrator
- Customer
Connections 20
- Administrator → Admin dashboard: uses
src/dashboard/app.py - Admin dashboard → Dashboard views: renders
src/dashboard/app.py - Admin dashboard → MySQL database: queries
src/dashboard/app.py - Admin dashboard → Report storage: lists and downloads
src/dashboard/app.py - Admin dashboard → Parameter Store: loads configuration
src/dashboard/app.py - Customer → Customer management: sends requests
src/customer/lambda_function.py - Customer management → MySQL database: reads and writes
src/customer/lambda_function.py - Customer → Product and inventory: requests products
src/product/lambda_function.py - Product and inventory → MySQL database: reads and updates
src/product/lambda_function.py - Product and inventory → EventBridge: publishes low-stock events
src/product/lambda_function.py - Customer → Order processing: sends requests
src/order/lambda_function.py - Order processing → MySQL database: reads and updates
src/order/lambda_function.py - Report generation → MySQL database: fetches report data
src/report/lambda_function.py - Report generation → Report storage: uploads CSV
src/report/lambda_function.py - Report generation → Parameter Store: loads configuration
src/report/lambda_function.py - Schema initializer → Parameter Store: loads configuration
src/init-schema/lambda_function.py - Schema initializer → Database schema: reads
src/init-schema/lambda_function.py - Schema initializer → MySQL database: creates and initializes
src/init-schema/lambda_function.py - Request authorization → Parameter Store: loads configuration
src/authorizer/lambda_function.py - Request authorization → MySQL database: looks up identity
src/authorizer/lambda_function.py