Skip to content

thomicdk/trustscore-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trustscore-calculator

A simple TrustScore calculator for Trustpilot reviews.

Getting started

  1. Run npm install to install build dependencies
  2. Run gulp to build calculator
  3. Update dist/config.json with your Trustpilot API key

Run from command line

Run calculator like this:

> node dist/trustscore skoringen.dk
TrustScore for 'skoringen.dk' is 8.9, based on the latest 300 reviews.

Use in Amazon AWS Lambda

  1. Run gulp publish:aws to create a ZIP package for AWS Lambda
  2. Locate ZIP-package here dist/aws/trustscore-calculator.zip
  3. Create or update AWS Lambda function using ZIP-package
  4. Configure handler name for Lambda function: aws-lambda-function.handler

Demo

Try the calculator here: https://imws1r6ap1.execute-api.us-west-2.amazonaws.com/prod/trustscores?domain=skoringen.dk

Roadmap

  • Add unit tests, especially to TrustScoreCalculator and BusinessUnitReviewApiService

About

A TrustScore calculator for Trustpilot reviews

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published