Skip to content

indira-active/smooch-jwt

Repository files navigation

CircleCI Codacy Badge codecov Known Vulnerabilities

smooch-jwt

Is a node.js service that provides JWT authentication for live chat support on indiraactive.com via the Smooch.io platform.

Environment

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

Development

# Install dependencies & devDependencies
npm install

# Start server
npm start

# Run tests
npm test

# Check test coverage
npm run coverage

# Check vulnerabilities
npm run scan

Production

Build & test local

docker-compose build
# Note subsequent builds will be cached, add --no-cache to rebuild from sctatch.

Run local

docker-compose up 
# Use -d to detach and run in background
# Note subsequent runs will re-use the image, add --build to rebuild image. 

About

node js backend server for indira api calls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published