Is a node.js service that provides JWT authentication for live chat support on indiraactive.com via the Smooch.io platform.
Dependencies:
npm
docker
docker-compose
Variable | Description |
---|---|
KEY_ID required to run |
Smooch.io App credentials go/smooch-secrets |
SECRET required to run |
Smooch.io App credentials go/smooch-secrets |
CODECOV_TOKEN required to build docker image local |
Token to submit coverage results after tests pass go/jwt-codecov-token |
# Create an copy .env file
cp .env.example .env
# Edit file to add applicable variables
# Then Set enviorment variables locally
source ./.env
# Install dependencies & devDependencies
npm install
# Start server
npm start
# Run tests
npm test
# Check test coverage
npm run coverage
# Check vulnerabilities
npm run scan
docker-compose build
# Note subsequent builds will be cached, add --no-cache to rebuild from sctatch.
docker-compose up
# Use -d to detach and run in background
# Note subsequent runs will re-use the image, add --build to rebuild image.