Serverless Plugin Bespoken

homepage icon https://github.com/bespoken/serverless-plugin-bespoken

Tracked

NPM Downloads Last Month
92
Issues
2
Stars
14
Forks
1
Watchers
14

Repo README Contents:

Bespoken Serverless Framework Plugin

serverless

A serverless plugin using bespoken proxy to test your work without deploying.

If you have to deploy your work everytime you are making changes, this tool will help you reduce that time. We generate a local server that is a attached to a proxy online so that you can use that url to access the functionality that you have in your code in your laptop.

What Does This Do?

The bst proxy service makes your local AWS Lambda available to debug and test via public URL. And though the URL is public, it is unique to you, and known only to you.

It is great for developing and testing:

It creates a unique public URL through which you can access it. Once installed, all you need to access it is:

sls proxy

You can now send and receive data to your locally running Lambda! Here is a demo of in action using Postman:

serverless Plugin

More detailed info on how the proxy works can be found here.

Install

npm install serverless-plugin-bespoken --save-dev

Add the plugin to your serverless.yml file:

plugins:
  - serverless-plugin-bespoken

You’re set! The plugin will run by using sls proxy.

Now you can use the generated url and access directly to your local server.