Public Access
AM-3: SWIFTLY_BEARER_TOKEN removed from .env.example, .env.test (local),
docker-compose.yml service env, and Settings (backend/app/config.py).
The scraper docstring is updated to reflect the auto-mint path.
AM-4: scripts/refresh_swiftly_token.py (commit ccfb38a, seleniumbase
click-through capture) deleted; superseded by swiftly_auth.py.
AM-5: docs refreshed.
- spec status header → "Implemented 2026-05-06" with live-verification
evidence
- HANDOFF.md TL;DR + caveats #2/#3 collapsed; replaced with the
auto-mint failure-modes caveat; "Suggested next move" rewritten
pointing to Phase 5 orchestration; file-map and last-updated touched
- ORIENTATION.md env-var section updated (no bearer var) + footer
AM-6 verification gate (run 2026-05-06):
- pytest -q tests/ → 92/92 green (88 prior + 4 new swiftly_auth)
- POST /api/admin/scrape → status=success, items_scraped=10928 in 44s
- grocery_item rows: 9980 (after dedup-by external_id)
- ingredient_grocery_match rows: 29779 (matcher post-hook populated)
- Container env confirmed clean of SWIFTLY_BEARER_TOKEN
The system now scrapes, matches, and generates plans without any
operator-managed credential. Live JWT lifecycle: Firebase REST anon
signUp → cache for ~55min → re-mint as needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
1011 B
Bash
36 lines
1011 B
Bash
# Database
|
|
DATABASE_URL=postgresql://mealplanner:password@db:5432/mealplanner
|
|
POSTGRES_PASSWORD=secure_password_here
|
|
|
|
# SendGrid
|
|
SENDGRID_API_KEY=SG.your_sendgrid_api_key
|
|
|
|
# Family Emails
|
|
FAMILY_EMAIL_1=you@example.com
|
|
FAMILY_EMAIL_2=spouse@example.com
|
|
RECIPES_EMAIL=you@example.com
|
|
|
|
# Lucky California
|
|
LUCKY_CA_URL=https://luckysupermarkets.com
|
|
|
|
# Swiftly product API (Lucky CA backend). The bearer JWT is auto-minted
|
|
# on demand via Firebase REST anon-signUp — see
|
|
# backend/app/services/swiftly_auth.py and
|
|
# docs/specs/2026-05-06-swiftly-token-auto-mint.md. No env var needed.
|
|
LUCKY_STORE_ID=757
|
|
SWIFTLY_API_BASE=https://prod.swiftlyapi.net
|
|
SWIFTLY_CATEGORIES_URL=https://luckysupermarkets.com/categories
|
|
|
|
# AI Image Generation (optional)
|
|
AI_IMAGE_ENABLED=false
|
|
AI_IMAGE_PROVIDER=openai
|
|
AI_IMAGE_API_KEY=sk-your-api-key
|
|
|
|
# Application
|
|
LOG_LEVEL=INFO
|
|
SECRET_KEY=change-me-to-a-random-secret-key
|
|
|
|
# Auth
|
|
ADMIN_TOKEN=change-me-to-a-random-admin-token
|
|
SESSION_PASSWORD=change-me-to-the-family-shared-password
|