auth0/webtask-runtime

Name: webtask-runtime

Owner: Auth0

Description: Runtime components of the webtask.io sandbox

Created: 2016-04-27 20:41:34.0

Updated: 2018-04-06 18:28:25.0

Pushed: 2017-10-04 14:02:56.0

Homepage: null

Size: 92

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Webtask runtime components

A series of components that replicate the behaviour of the runtime component of https://webtask.io.

Example

Given a sample webtask:

tion webtask(ctx, cb) {
return cb(null, {
    secret: ctx.secrets.hello,
});

Sample of simulating a request to a webtask function:

t Assert = require('assert');
t Runtime = require('webtask-runtime');

ime.simulate(webtask, { secrets: { hello: 'world' }}, function (res) {
Assert.ok(res.statusCode === 200);
Assert.ok(typeof res.payload === 'string');

Sample of creating a local http server that runs a webtask:

t Assert = require('assert');
t Runtime = require('webtask-runtime');

t server = Runtime.createServer(webtask, { secrets: { hello: 'world' }});

er.listen(8080);
API

TODO

Contributing

Just clone the repo, run npm install and then hack away.

Issue reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

License

MIT

What is Auth0?

Auth0 helps you to:

Create a free account in Auth0
  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.