Skip to content

A simple serverless implementation to get the next item in adaptive test

License

Notifications You must be signed in to change notification settings

saraansh/adaptive-test-serverless

Repository files navigation

adaptive-test-serverless

A simple serverless implementation to get the next item in adaptive test

Requirements

  • node v12.x

    via official website Download | Node.js or using nvm

    nvm install v12
    nvm use v12
  • serverless v2.x

    npm install -g serverless@latest
  • python 3.7 + pip 21.x

    Search the web

Steps to run the app

  1. Clone the repo

    git clone git@github.com:saraansh/adaptive-test-serverless.git
  2. Cleanup & install packages

    rm -rf ./node_modules
    rm *-lock.json
    npm install
  3. Install python modules

    pip install -r requirements.txt
  4. Start the app (offline mode)

    npm run start:offline
  5. With the app running, you can now call the following endpoints:

    i. get-next-test-item 📎

    curl --location --request POST 'http://localhost:5000/development/get-next-test-item' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "testItemIds": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
        "visitedItemIds": ["7", "4"],
        "visitedItemResponses": [false, true],
        "currentProficiency": 0,
        "maxVisitedItemsCount": 5
    }'
    

About

A simple serverless implementation to get the next item in adaptive test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published