/reliability-kit-example-serverless

🪨 An example Serverless application which uses Reliability Kit

Primary LanguageJavaScript

Reliability Kit: Serverless Example

This is an example Serverless application which illustrates how to use FT.com Reliability Kit.

All of the code for this example app is in index.js and serverless.yml.

Warning It's important to remember that this app isn't an example of how to correctly set up a Financial Times Serverless application – it's used to illustrate how to integrate Reliability Kit with as little boilerplate code as possible.

Running locally

First, you'll need to clone this repo and install dependencies with:

npm install

You can then invoke the Serverless function using one of the following.

Get a successful response with a debug log:

npm run invoke

Get a partially-successful response with a warning log:

npm run invoke-questionable

Get a bad response with an error log:

npm run invoke-bad

Contributing

See the central contributing guide for Reliability Kit.

License

Licensed under the MIT license.
Copyright © 2023, The Financial Times Ltd.