0.2.0 • Published 1 year ago

@curveball/azure-function v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Curveball Azure Functions handler

Azure Function bindings for Curveball. Go 'serverless' with Curveball.

Installation

npm install @curveball/azure-function @curveball/kernel

Getting started

Get started with your Azure function as you normally would, the easiest is to start with the http-trigger template.

After this, your index.ts should look a little like this:

import { Application } from '@curveball/kernel';
import { handler } from '@curveball/azure-function'

const app = new Application();
app.use( ctx => {
  ctx.response.body = 'hello world';
});

export default handler(app);

API
---

...

[1]: https://github.com/curveball/