How reztdev/risena-website-store works
Risena is a batik storefront with two deployment modes: a static browser-only shop and an optional Flask backend with admin, order recording, and stock management. The buyer workflow is browse products, build a cart, submit checkout, then complete the purchase through WhatsApp; in backend mode, Flask validates and records the order before the buyer continues. The map also includes administration, image processing, and SEO. Some frontend and admin implementation details were not sampled, so uncertain connections are omitted.
Main entry points: app.py Flask Routes & API · index.html Shop Interface · store.py Catalog & Orders · app.js Cart & Checkout
Components 18
Storefront
- Shop Interface
index.html - Cart & Checkout
assets/js/app.js - Theme Handling
assets/js/theme.js - Product Catalog
data/products.js - Product Photos
foto
Flask Backend
- Flask Routes & API
backend/app.py - Runtime Configuration
backend/config.py - Admin Pages
backend/templates - Admin Interface
backend/static/admin.js
Store Operations
- Image Processing
backend/imaging.py - Catalog & Orders
backend/store.py - Scheduled Jobs
backend/store.py - SQLite Database
backend/pesanan.db
SEO
- SEO Pages & Metadata
backend/seo.py
Other components
- Buyer Browser
- Admin Browser
- ntfy Notifications
Connections 19
- Buyer Browser → Shop Interface: opens shop
README.md - Shop Interface → Product Catalog: reads catalog
README.md - Cart & Checkout → Shop Interface: updates views
- Shop Interface → Product Photos: shows photos
- Buyer Browser → Flask Routes & API: uses shop API
README.md - Flask Routes & API → Catalog & Orders: places order
backend/app.py - Catalog & Orders → SQLite Database: stores orders and stock
README.md - Catalog & Orders → Product Catalog: reads and updates
README.md - Cart & Checkout → WhatsApp: opens checkout
README.md - Admin Browser → Flask Routes & API: uses admin routes
README.md - Flask Routes & API → Admin Pages: renders pages
README.md - Admin Pages → Admin Interface: loads scripts
- Flask Routes & API → Runtime Configuration: uses settings
backend/app.py - Flask Routes & API → Image Processing: uses uploads
backend/app.py - Image Processing → Product Photos: writes images
README.md - Flask Routes & API → SEO Pages & Metadata: serves SEO routes
backend/app.py - Scheduled Jobs → SQLite Database: updates order state
README.md - Flask Routes & API → Scheduled Jobs: starts jobs
backend/app.py - Flask Routes & API → ntfy Notifications: sends alerts
README.md