Critical Fixes: - Registration routes: changed /shipper → /register/shipper, /driver → /register/driver (was causing 404s — landing page linked to /register/* but routes were /shipper and /driver) - Registration form actions: fixed to match /register/shipper and /register/driver - Removed duplicate /payments route mount in server.js (payments.js is escrow, mounted at /escrow) - Supabase client: now uses service key (falls back to anon key) - Created missing pages/errors/403.ejs view Documentation: - README.md: full project documentation - .env.example: environment variable template - .dockerignore: exclude dev files from Docker image
25 lines
586 B
Text
25 lines
586 B
Text
# FreightDesk — Environment Variables
|
|
# Copy to .env and fill in values
|
|
|
|
# Server
|
|
NODE_ENV=development
|
|
PORT=3000
|
|
APP_URL=http://localhost:3000
|
|
|
|
# Session secret (generate: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
|
|
SESSION_SECRET=change-this-to-a-random-string-in-production
|
|
|
|
# Supabase
|
|
SUPABASE_URL=https://your-project.supabase.co
|
|
SUPABASE_SERVICE_KEY=your-service-role-key
|
|
SUPABASE_KEY=your-anon-key
|
|
|
|
# Payment Gateway (production — Razorpay)
|
|
RAZORPAY_KEY_ID=
|
|
RAZORPAY_KEY_SECRET=
|
|
|
|
# Email (optional)
|
|
SMTP_HOST=
|
|
SMTP_PORT=587
|
|
SMTP_USER=
|
|
SMTP_PASS=
|