A simple TrustScore calculator for Trustpilot reviews.
- Run
npm install
to install build dependencies - Run
gulp
to build calculator - Update
dist/config.json
with your Trustpilot API key
Run calculator like this:
> node dist/trustscore skoringen.dk
TrustScore for 'skoringen.dk' is 8.9, based on the latest 300 reviews.
- Run
gulp publish:aws
to create a ZIP package for AWS Lambda - Locate ZIP-package here
dist/aws/trustscore-calculator.zip
- Create or update AWS Lambda function using ZIP-package
- Configure handler name for Lambda function:
aws-lambda-function.handler
Try the calculator here: https://imws1r6ap1.execute-api.us-west-2.amazonaws.com/prod/trustscores?domain=skoringen.dk
- Add unit tests, especially to
TrustScoreCalculator
andBusinessUnitReviewApiService