- internal/assignment: GEORADIUS miler assignment with retry/escalation, customer-side provider scoring, FCM notifications on assign - internal/notify: Firebase Admin SDK (FCM) client initialisation - internal/ws: WebSocket handlers for live parcel tracking and customer↔miler chat - middlewares: city gate (pincode prefix validation), internal API key auth, WebSocket JWT auth - controllers: InternalNotify + InternalReassign for machine-to-machine calls; pricing helpers wired into CreateCustomerBooking and CreateCRMBooking - routes: /internal/*, /ws/bookings/:id/track, /ws/bookings/:id/chat - models/users, models/doormile_pricing: new fields for device tokens, assignment state, pricing bands - seed_data.sql: initial pricing seed rows .env and Firebase service-account JSON intentionally excluded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
623 B
Plaintext
28 lines
623 B
Plaintext
# App Config
|
|
APP_PORT=8081
|
|
ENV=development
|
|
JWT_SECRET_KEY=DoormileSuperSecretJWTKey2026!
|
|
INTERNAL_API_KEY=doormile-internal-2024
|
|
|
|
# PostgreSQL Database Configuration
|
|
DB_HOST=31.97.228.132
|
|
DB_PORT=5433
|
|
DB_NAME=logistics
|
|
DB_USER=admin
|
|
DB_PASSWORD=Package@321#
|
|
|
|
# Redis Configuration
|
|
REDIS_HOST=31.97.228.132
|
|
REDIS_PORT=6379
|
|
REDIS_USER=admin
|
|
REDIS_PASSWORD=Package@321#
|
|
|
|
|
|
$env:PATH += ";C:\Program Files\Docker\Docker\resources\bin"
|
|
>>
|
|
>> docker build -t doormile/doormile-backend:latest .
|
|
>> docker push doormile/doormile-backend:latest
|
|
>>
|
|
|
|
|