Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/duyet/koa-firebase-functions

Koajs wrapper for Firebase functions
https://github.com/duyet/koa-firebase-functions

firebase firebase-functions koa

Last synced: about 2 months ago
JSON representation

Koajs wrapper for Firebase functions

Awesome Lists containing this project

README

        

# koa-firebase-functions

Koa wrapper for Firebase functions.

# Installation

```
npm i koa-firebase-functions --save
```

# Usage

```js
const koaFirebase = require('koa-firebase-functions');
const koa = require('koa')
, app = koa.app();

app.use(async ctx => {
ctx.body = 'Hello World';
});

exports.api = functions.https.onRequest(koaFirebase(app));

// Visit https://us-central1-MY_PROJECT.cloudfunctions.net/api
```

# License
MIT