Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Firebase adapter for js-data.

License

NotificationsYou must be signed in to change notification settings

js-data/js-data-firebase

Repository files navigation

js-data logo

js-data-firebase

SlackNPMTestsDownloadsCoverage

Tested on IE9, Chrome 46, Firefox 41 & Safari 7.1 usingbs logo

A Firebase adapter for theJSData Node.js ORM.

Installation

npm install --save js-data js-data-firebase firebase

Usage (Browser)

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});

Usage (Node.js)

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});

JSData + Firebase Tutorial

Start with theJSData + Firebase tutorial or checkout theAPI Reference Documentation.

Need help?

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!

Want to contribute?

Awesome! You can get started over at theContributing guide.

Thank you!

License

The MIT License (MIT)

Copyright (c) 2014-2017js-data-firebase project authors

About

Firebase adapter for js-data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp