egg-firebase
v1.0.7
Published
a plugin for firebase-admin
Downloads
5
Maintainers
Readme
egg-firebase
Install
$ npm i egg-firebase --save
Usage
// {app_root}/config/plugin.js
exports.firebase = {
enable: true,
package: 'egg-firebase',
};
Configuration
// {app_root}/config/config.default.js
exports.firebase = {
client: {
credential: require('yourSecretKey.json'),
database: 'your database url',
collection: 'your collection name for test connection'
},
app: true,
agent: false
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.