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.
$ yarn add -D serverless-webtasks-local
- or -
$ npm install -D serverless-webtasks-local
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'
$ sls wt-local
http://localhost:3000/hello