Django 6 + DRF resource server against the Gooyal accounts OAuth2 service, matching the Winsoo ecosystem's conventions. Covers locations, stores, catalog, cart, checkout/orders (with the multi-store-cart split and the status stepper), reviews, and notifications, plus a demo-data seed command. Payment integration (wallet debits, online gateway, seller payouts) is intentionally left out here — see feature/payment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
28 lines
761 B
Text
28 lines
761 B
Text
SECRET_KEY=change-me
|
|
DEBUG=True
|
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
|
|
|
DB_NAME=winofy_dev
|
|
DB_USER=
|
|
DB_PASSWORD=
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
|
|
REDIS_URL=redis://localhost:6379/1
|
|
|
|
CORS_ALLOWED_ORIGINS=
|
|
CSRF_TRUSTED_ORIGINS=
|
|
NEARBY_RADIUS_METERS=5000
|
|
DEFAULT_COMMISSION_PERCENT=4.0
|
|
|
|
# OAuth2 provider (Gooyal accounts) — resource-server introspection + this
|
|
# service's own client-credentials grant for outbound calls to Gooyal services.
|
|
OAUTH2_PROVIDER_BASE_PUBLIC_URL=
|
|
OAUTH2_PROVIDER_BASE_PRIVATE_URL=
|
|
OAUTH2_PROVIDER_CLIENT_ID=
|
|
OAUTH2_PROVIDER_CLIENT_SECRET=
|
|
OAUTH2_PROVIDER_SCOPES=
|
|
|
|
# macOS only — not needed on Linux where GDAL is on the system path
|
|
# GDAL_LIBRARY_PATH=/opt/homebrew/lib/libgdal.dylib
|
|
# GEOS_LIBRARY_PATH=/opt/homebrew/lib/libgeos_c.dylib
|