@syncu.be/lb-connector-firebase
Loopback Connector for firebase NoSql Database. LoopBack is an API Mgmt/MBaas platform built on top of express by Strongloop. It supports the notion of connectors to connect to databases, restful web services, soap web services etc. This project is a conn
Last updated 2 years ago by syncubes .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @syncu.be/lb-connector-firebase 
SYNC missed versions from official npm registry.

lb-connector-firebase

Firebase connector for loopback v3

Installation of the connector

You’re going to add a MongoDB data source in addition to the MySQL data source created in Connect your API to a data source.

$ lb datasource

When prompted, respond as follows:

? Enter the data-source name: firebase
? Select the connector for firebase: Other
? Enter the connector's module name: @syncu.be/lb-connector-firebase
? Install lb-connector-firebase (Y/n): Y

Add to your datasources.json file the following:

"firebase": {
    "name": "firebase",
    "url": "https://<% YOUR FIREBASE PROJECT ID %>.firebaseio.com",
    "token": "<% YOUR FIREBASE PROJECT TOKEN %>"
}

Done!

Customizing Firebase configuration for tests/examples

The .loopbackrc file is in JSON format, for example:

{
    "test": {
        "firebase": {
            "url": "<firebase_url>",
            "token": "<security_token>"
        }
    }
}

Running tests

  • npm test - To run the test
  • npm run coverage - To find the code coverage

Release notes

Yet to be Released officially

Credits

Inspired by https://github.com/Synerzip/loopback-connector-firebase

Actually, PUT and DELETE queries were not working for our project so we decided to fork Synerzip's connector and maintain it in actual state.

Current Tags

  • 0.6.4                                ...           latest (2 years ago)

9 Versions

  • 0.6.4                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |