How dongjak-village-guards/backend works
BuyNow is a Django backend for local businesses: customers discover stores and available discounted time slots, then reserve them; owners and administrators have role-specific account and store operations. Pricing utilities and scheduled management commands maintain discount and sales-history data used by availability and reservation features. The source excerpts show key calls and model relationships, but not all URL dispatch or unsampled view behavior, so the graph avoids inferring those links.
Main entry points: reservations/views.py Reservation API · stores/views.py Store API · commands Pricing Jobs · accounts/views.py Account API
Components 19
Accounts & Identity
- Account API
buynow/accounts/views.py - Account Serializers
buynow/accounts/serializers.py - Firebase Token Auth
buynow/config/authentication.py - Users
buynow/accounts/models.py
Store Discovery
- Store API
buynow/stores/views.py - Store Catalog & Slots
buynow/stores/models.py - Location Services
buynow/config/kakaoapi.py
Reservations
- Reservation API
buynow/reservations/views.py - Reservation Serializers
buynow/reservations/serializers.py - Reservations & Likes
buynow/reservations/models.py
Pricing & Records
- Pricing Utilities
buynow/pricing/utils.py - Pricing Parameters
buynow/pricing/models.py - Pricing Jobs
buynow/pricing/management/commands - Sales Records
buynow/records/models.py
Other components
- Customer
- Store Owner
- Firebase Auth
- Kakao Local API
- Application Logger
buynow/logger.py
Connections 27
- Customer → Account API: signs in
buynow/accounts/views.py - Store Owner → Account API: signs in
buynow/accounts/views.py - Account API → Account Serializers: validates with
buynow/accounts/views.py - Account Serializers → Users: reads and writes
buynow/accounts/serializers.py - Firebase Token Auth → Firebase Auth: verifies tokens
buynow/config/authentication.py - Firebase Token Auth → Users: creates or retrieves
buynow/config/authentication.py - Customer → Store API: browses stores
- Store Owner → Store API: manages stores
- Store API → Store Catalog & Slots: queries catalog
buynow/stores/views.py - Store API → Location Services: gets coordinates
buynow/stores/views.py - Location Services → Kakao Local API: geocodes addresses
buynow/config/kakaoapi.py - Customer → Reservation API: books a slot
- Store Owner → Reservation API: manages slots
- Reservation API → Reservations & Likes: creates and cancels
buynow/reservations/views.py - Reservation API → Reservation Serializers: uses serializers
buynow/reservations/views.py - Reservations & Likes → Users: references users
buynow/reservations/models.py - Reservations & Likes → Store Catalog & Slots: references items and slots
buynow/reservations/models.py - Reservation API → Pricing Utilities: uses pricing helpers
buynow/reservations/views.py - Pricing Utilities → Sales Records: creates item records
buynow/pricing/utils.py - Pricing Utilities → Store Catalog & Slots: reads item data
buynow/pricing/utils.py - Pricing Jobs → Pricing Utilities: runs pricing logic
buynow/pricing/management/commands/update_discounts.py - Pricing Jobs → Pricing Parameters: uses parameters
buynow/pricing/management/commands/update_discounts.py - Pricing Jobs → Sales Records: trains from records
buynow/pricing/management/commands/train_records.py - Pricing Jobs → Store Catalog & Slots: updates items
buynow/pricing/management/commands/update_discounts.py - Account API → Application Logger: logs events
buynow/accounts/views.py - Store API → Application Logger: logs events
buynow/stores/views.py - Reservation API → Application Logger: logs events
buynow/reservations/views.py