micro webservice that evaluates bigfive questions
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.dockerignore
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

Build Status js-standard-style

micro-bigfive-evaluator

Example: https://evaluator.bigfive.maccyber.io/

micro webservice that calculates score of personality test questions

See bigfive-web for full repo.

Calculate score

POST

Array with domain and score. Facet is optional.

{
  "timeElapsed": -51,
  "ip": "127.0.0.1",
  "lang": "en",
  "test": "50-IPIP-NEO-PI-R",
  "totalQuestions": 50,
  "answers": [
    {
      "domain": "A",
      "facet": "1",
      "score": "3"
    },
    {
      "domain": "A",
      "facet": "1",
      "score": "3"
    },
    {
      "domain": "E",
      "facet": "1",
      "score": "3"
    },
    {
      "domain": "E",
      "facet": "2",
      "score": "3"
    }
  ]
}

returns score for each factor

{
  "timeElapsed": -51,
  "ip": "127.0.0.1",
  "lang": "en",
  "test": "50-IPIP-NEO-PI-R",
  "totalQuestions": 50,
  "answers": [
    {
      "domain": "A",
      "facet": "1",
      "score": "3"
    },
    {
      "domain": "A",
      "facet": "1",
      "score": "3"
    },
    {
      "domain": "E",
      "facet": "1",
      "score": "3"
    },
    {
      "domain": "E",
      "facet": "2",
      "score": "3"
    }
  ],
  "data": {
    "A": {
      "score": 6,
      "count": 2,
      "result": "neutral",
      "facet": {
        "1": {
          "score": 6,
          "count": 2,
          "result": "neutral"
        }
      }
    },
    "E": {
      "score": 6,
      "count": 2,
      "result": "neutral",
      "facet": {
        "1": {
          "score": 3,
          "count": 1,
          "result": "neutral"
        },
        "2": {
          "score": 3,
          "count": 1,
          "result": "neutral"
        }
      }
    }
  }
}

Deploy using Now

$ now https://github.com/maccyber/micro-bigfive-evaluator

Related

License

MIT

About

Created with <3 by zrrzzt and maccyber

alt text alt text