Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/duyet/koa-firebase-functions
- Owner: duyet
- License: mit
- Created: 2019-03-02T06:30:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T21:18:37.000Z (8 months ago)
- Last Synced: 2024-05-21T15:36:56.264Z (8 months ago)
- Topics: firebase, firebase-functions, koa
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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