0c43d32cf1
- Backend: add expo_push_tokens table, expo-register/unregister endpoints, hybrid VAPID+Expo push sender - Mobile: register Expo push token on app launch, bell toggle on medicine/pharmacy detail screens - .env.example: document EXPO_ACCESS_TOKEN configuration - Dark mode hover fixes for search suggestions and recent buttons
22 lines
667 B
Bash
22 lines
667 B
Bash
PORT=3001
|
|
SESSION_SECRET=change-me-in-production
|
|
CORS_ORIGIN=http://localhost:3000
|
|
FARMACIAS_WEBHOOK_URL=
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
|
|
# PostgreSQL for user accounts (leave unset to fallback to SQLite — dev/test only)
|
|
PG_URL=postgresql://farmaclic:change-me@localhost:5432/farmaclic
|
|
PG_PASSWORD=change-me
|
|
|
|
# Web Push (VAPID). Generate with:
|
|
# node -e "import('web-push').then(w => console.log(w.default.generateVAPIDKeys()))"
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
VAPID_SUBJECT=mailto:admin@example.com
|
|
|
|
# Expo Push Notifications (mobile). Get token from:
|
|
# https://expo.dev/accounts/[username]/settings/access-tokens
|
|
EXPO_ACCESS_TOKEN=
|