How aryantj07/photobooth-application works
Snapstory is a Flask-powered self-service photo booth. A visitor selects a photo package, pays through Razorpay, captures up to four webcam or demo photos, and reviews a generated photo strip. The server creates orders and verifies payments against Razorpay and PostgreSQL; the browser handles booth navigation, capture, and preview. The excerpts show payment verification and strip-building behavior, but omit parts of order initiation and session-to-capture wiring, so those connections are not inferred.
Main entry points: app.js Booth UI · app.py Payment verification · index.html Booth page
Components 13
Booth interface
- Booth page
templates/index.html - Booth UI
static/js/app.js - Package selection
static/js/app.js
Payment processing
- Flask routes
app.py - Order creation
app.py - Payment verification
app.py
Photo experience
- Camera access
static/js/app.js - Photo capture
static/js/app.js - Strip builder
static/js/app.js - Strip preview
static/js/app.js
Order records
- PostgreSQL
Other components
- Visitor
- Razorpay
Connections 13
- Visitor → Booth UI: uses
static/js/app.js - Flask routes → Booth page: renders
app.py - Booth UI → Package selection: selects
static/js/app.js - Order creation → Razorpay: creates order
app.py - Order creation → PostgreSQL: inserts order
app.py - Payment verification → PostgreSQL: reads and updates
app.py - Payment verification → Razorpay: verifies payment
app.py - Booth UI → Payment verification: posts verification
static/js/app.js - Visitor → Camera access: enables
static/js/app.js - Camera access → Photo capture: provides stream
static/js/app.js - Booth UI → Photo capture: requests capture
static/js/app.js - Photo capture → Strip builder: builds from photos
static/js/app.js - Strip builder → Strip preview: shows result
static/js/app.js