Skip to content
Sample Callback Server written in Node
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Procfile.js
README.md
app.json
package.json
scale.js
taskModel.js

README.md

sample-callback-server-node

This is a simple callback server for Scale API, written in Node.js and backed by MongoDB.

You can deploy a callback server to Heroku in seconds and save all your tasks and responses to MongoDB.

Deploy to Heroku

  1. If you haven't already, sign up for a free Scale API account. Note your Scale Callback Auth Key, which you will use during deployment.
  2. Deploy

Using the Callback Server

Once your server is deployed, you can start using it as your callback_url for your Scale tasks.

You should specify the callback_url as https://[YOUR_APP_NAME].herokuapp.com/, where [YOUR_APP_NAME] is replaced with your Heroku app name.

Accessing the Responses

Your tasks will be saved to the tasks collection of the provided MongoDB database. The schema will be identical to the schema specified in our docs. By default, it will provision a new mLab instance, which you can access through your Heroku dashboard.

Contact

Chat with us on Scale's Slack channel :)

You can’t perform that action at this time.