pawsh-utils
Keys needed
Error Handling
- res.locals
- statusCode: set any http status codes e.g. 422, 400
- userErrorMessage: error message for user to understand
- errorLogName: log name for better filter on cloud logging
- if LOCAL_HOST is not 'running', it will print error in Google Cloud Logging
Stripe:
- NODE_ENV: dev, test, prod
- STRIPE_SECRET_TEST_KEY: sk_xxx
Firebase Auth and FireStore
- GROOMER_FIRESTORE_DB_URL: https://xxx.firebaseio.com
- GROOMER_FIREBASE_APP_SERVICE_ACCOUNT_PATH
- CUSTOMER_FIRESTORE_DB_URL: https://xxx.firebaseio.com
- CUSTOMER_FIREBASE_APP_SERVICE_ACCOUNT_PATH
SendBird
- SENDBIRD_BASE_URL=https://api-xxx.sendbird.com/v3/
- SENDBIRD_API_KEY
Twilio Phone Number for sms
- TWILIO_PAWSH_CALLER: valid phoneNumber
Initial setup
- TWILIO_LIVE_ACCOUNT_SID
- TWILIO_LIVE_AUTH_TOKEN
Phone verification
- TWILIO_VERIFY_SERVICE_SID
Others
-
TWILIO_API_KEY
-
TWILIO_API_SECRET
-
TWILIO_APP_SID
-
TWILIO_SERVICE_SID