serverless-webtasks-local

0.0.1 • Public • Published

Serverless Webtasks Local

Serverless framework plugin that provides a http server to simulate the webtask platform.

The plugin will read your serverless config and provide an endpoint for each function defined.

To install

$ yarn add -D serverless-webtasks-local
	- or -
$ npm install -D serverless-webtasks-local

serverless config

service:
  name: <your-service-name>

provider:
  name: webtasks
  profile: <your-webtask-profile-name>

functions:
  hello:
    handler: src/hello.js
    name: hello

plugins:
  - '@webtask/serverless-webtasks'
  - 'serverless-webtasks-local'

To run the server

$ sls wt-local

In your browser

http://localhost:3000/hello

/serverless-webtasks-local/

    Package Sidebar

    Install

    npm i serverless-webtasks-local

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    3.73 kB

    Total Files

    5

    Last publish

    Collaborators

    • garethhunt