- Notifications
You must be signed in to change notification settings - Fork15
Firebase adapter for js-data.
License
js-data/js-data-firebase
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Tested on IE9, Chrome 46, Firefox 41 & Safari 7.1 using
A Firebase adapter for theJSData Node.js ORM.
npm install --save js-data js-data-firebase firebase
import{FirebaseAdapter}from'js-data-firebase';window.firebase.initializeApp({apiKey:window.API_KEY,authDomain:window.AUTH_DOMAIN,databaseURL:window.DATABASE_URL});// Create an instance of FirebaseAdapterconstadapter=newFirebaseAdapter({// baseRef: 'users', // optionally set a baseRef rootdb:window.firebase.database()});// Other JSData setup hidden// Register the adapter instancestore.registerAdapter('firebase',adapter,{default:true});
importfirebasefrom'firebase';import{FirebaseAdapter}from'js-data-firebase';firebase.initializeApp({databaseURL:process.env.DATABASE_URL,serviceAccount:process.env.KEY_FILENAME||'key.json'});// Create an instance of FirebaseAdapterconstadapter=newFirebaseAdapter({db:firebase.database()});// Other JSData setup hidden// Register the adapter instancestore.registerAdapter('firebase',adapter,{default:true});
Start with theJSData + Firebase tutorial or checkout theAPI Reference Documentation.
Pleasepost a question on Stack Overflow.This is the preferred method.
You can also chat with folks on theSlack Channel. If you end up gettingyour question answered, please still consider consider posting your question toStack Overflow (then possibly answering it yourself). Thanks!
Awesome! You can get started over at theContributing guide.
Thank you!
Copyright (c) 2014-2017js-data-firebase project authors
About
Firebase adapter for js-data.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.