How vladus-cpu/dbauc2 works
This is a web marketplace centered on double auctions: users browse listings, participate in auctions, and manage orders and wallet funds; administrators also manage auction activity. The backend exposes domain routes and runs scheduled clearing, while the browser UI uses API clients and session controls. Evidence is limited to the supplied excerpts and SOURCE INDEX; several product areas are visible only by filename, so their internal calls are not inferred.
Main entry points: session.js Session access · aucmodel.py Auction routes · db.py Marketplace database · listings.js Listings screens
Components 34
Browser experience
- Auction screens
frontend/js/pages/auction-detail.js - Listings screens
frontend/js/pages/listings.js - Account screens
frontend/js/pages/account.js - Profile screens
frontend/js/pages/profile.js - Admin screens
frontend/js/pages/admin.js - Wallet screens
frontend/js/pages/wallet.js - Session access
frontend/js/ui/session.js - Session resolver
frontend/js/ui/session/resolver.js - Session cache
frontend/js/ui/session/cache.js - Session normalization
frontend/js/ui/session/normalize.js - Role visibility
frontend/js/ui/session/visibility.js - Notifications
frontend/js/ui/toast.js
Browser API
- HTTP transport
frontend/js/api/http.js - Authentication client
frontend/js/api/auth.js - Auction client
frontend/js/api/auctions.js - Listing client
frontend/js/api/listings.js - Admin client
frontend/js/api/admin.js - Other API clients
frontend/js/api
Marketplace backend
- Flask application
backend/app.py - Authentication routes
backend/routes/auth.py - Auction routes
backend/routes/aucmodel.py - Listing routes
backend/routes/listings.py - Accounts and profiles
backend/routes/accounts.py - Orders and resources
backend/routes/orders.py - Wallet routes
backend/routes/wallet.py - Administration routes
backend/routes/admin.py - Authentication security
backend/security.py - Marketplace database
backend/db.py
Auction runtime
- Clearing algorithms
backend/services/auction.py - Scheduled clearing
backend/services/clearing_scheduler.py - Wallet ledger
backend/services/wallet.py - Auction helpers
backend/routes/aucservices.py
Other components
- Trader
- Administrator
Connections 48
- Trader → Auction screens: uses
- Trader → Listings screens: browses
- Trader → Account screens: manages account
- Administrator → Admin screens: manages
- Auction screens → Session access: checks access
frontend/js/pages/auction-detail.js - Auction screens → Notifications: shows notices
frontend/js/pages/auction-detail.js - Auction screens → Auction client: requests auction data
- Listings screens → Session access: checks access
frontend/js/pages/listings.js - Listings screens → Notifications: shows notices
frontend/js/pages/listings.js - Listings screens → Listing client: requests listings
- Listings screens → Admin client: requests admin data
frontend/js/pages/listings.js - Account screens → Session access: checks access
frontend/js/pages/account.js - Account screens → Notifications: shows notices
frontend/js/pages/account.js - Profile screens → Session access: checks access
frontend/js/pages/profile.js - Profile screens → Notifications: shows notices
frontend/js/pages/profile.js - Admin screens → Session access: checks access
frontend/js/pages/admin.js - Admin screens → Notifications: shows notices
frontend/js/pages/admin.js - Admin screens → Auction client: requests auctions
frontend/js/pages/admin.js - Wallet screens → Other API clients: uses wallet client
- Session access → Session resolver: resolves session
frontend/js/ui/session.js - Session access → Session cache: reads cache
frontend/js/ui/session.js - Session access → Session normalization: creates guest
frontend/js/ui/session.js - Session access → Role visibility: sets visibility
frontend/js/ui/session.js - Session resolver → Authentication client: fetches identity
frontend/js/ui/session/resolver.js - Session resolver → Session cache: uses cache
frontend/js/ui/session/resolver.js - Session resolver → Session normalization: normalizes identity
frontend/js/ui/session/resolver.js - Authentication client → HTTP transport: uses transport
frontend/js/api/auth.js - Auction client → HTTP transport: uses transport
frontend/js/api/auctions.js - Listing client → HTTP transport: uses transport
frontend/js/api/listings.js - Admin client → HTTP transport: uses transport
frontend/js/api/admin.js - HTTP transport → Authentication client: reads token
frontend/js/api/http.js - Flask application → Marketplace database: initializes schema
backend/app.py - Flask application → Scheduled clearing: starts scheduler
backend/app.py - Flask application → Authentication routes: routes requests
- Auction routes → Marketplace database: reads and writes
backend/routes/aucmodel.py - Auction routes → Authentication security: checks access
backend/routes/aucmodel.py - Auction routes → Clearing algorithms: computes clearing
backend/routes/aucmodel.py - Auction routes → Wallet ledger: updates balances
backend/routes/aucmodel.py - Auction routes → Auction helpers: uses helpers
backend/routes/aucmodel.py - Listing routes → Marketplace database: reads and writes
backend/routes/listings.py - Listing routes → Authentication security: checks access
backend/routes/listings.py - Authentication routes → Marketplace database: reads and writes
backend/routes/auth.py - Authentication routes → Authentication security: uses tokens
backend/routes/auth.py - Wallet routes → Marketplace database: reads and writes
backend/routes/wallet.py - Wallet routes → Wallet ledger: performs transactions
backend/routes/wallet.py - Wallet routes → Authentication security: checks access
backend/routes/wallet.py - Administration routes → Marketplace database: reads and writes
backend/routes/admin.py - Administration routes → Authentication security: checks access
backend/routes/admin.py