Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonybudianto/koa-firebase
☕ Koa with Firebase powered starter
https://github.com/antonybudianto/koa-firebase
firebase koa koa-router koajs middleware starter
Last synced: 26 days ago
JSON representation
☕ Koa with Firebase powered starter
- Host: GitHub
- URL: https://github.com/antonybudianto/koa-firebase
- Owner: antonybudianto
- License: mit
- Created: 2017-03-21T13:47:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T15:23:51.000Z (over 7 years ago)
- Last Synced: 2024-10-01T02:20:24.609Z (about 1 month ago)
- Topics: firebase, koa, koa-router, koajs, middleware, starter
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-koa - koa-firebase - Koa with Firebase middleware integration starter (Examples & Boilerplates)
README
# koa-firebase
Simple Firebase Admin Server using [Koa](http://koajs.com/).
You used Firebase for auth, realtime DB, and all. Finally you need your own server
to integrate with 3rd party services, or maybe custom token, or you need server-side operations.## Requirements
- Node 7.6 or later## How to use
1. Clone this repo and change directory to the cloned folder
2. Install the packages```sh
npm install
```3. You need to download your Firebase Service Account json file, please follow the official [instruction](https://firebase.google.com/docs/admin/setup).
Put the file at project root.
> :warning: Always make sure the JSON file is git-ignored!
4. Copy `.env.example` file and rename it to `.env` at project root.
Change the dummy FIREBASE_DATABASE_URL value with your Firebase project databaseURL, you can find it on your Firebase Console
5. Then start the server
```sh
npm start
```
6. It should log successfully, and you can start using Firebase Admin SDK## License
MIT