koa-firebase-functions

1.0.1 • Public • Published

koa-firebase-functions

Koa wrapper for Firebase functions.

Installation

npm i koa-firebase-functions --save

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i koa-firebase-functions

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

2.27 kB

Total Files

4

Last publish

Collaborators

  • duyetdev