FirebaseExtended/emberfire
Fork: 288 Star: 689 (更新于 1970-01-01 00:00:00)
license: MIT
Language: TypeScript .
The officially supported adapter for using Firebase with Ember
最后发布版本: v3.0.0-rc.6 ( 2019-10-13 00:10:51)
EmberFire
Status
This repository is maintained by Googlers but is not a supported Firebase product. Issues here are answered by maintainers and other community members on GitHub on a best-effort basis.
WARNING: Master branch is the work in progress for version 3 of Emberfire. You can find version 2 here, if you're looking for documentation or to contribute to stable. Learn more about the rewrite effort here.
Why EmberFire?
- Developed by experts - Developed and maintained by the Firebase team
- Ember Data Adapters - Cloud Firestore and Realtime Database adapters for Ember Data allow you to persist your models in Firebase
-
Ember Services -
firebase
andfirebase-app
services allow direct access to the underlying Firebase SDK instance -
Realtime Bindings - Listen for realtime updates to your Firebase backed Ember Data models using the provided
realtime-listener
service or theRealtimeRouteMixin
- Authentication Providers - Integrate Firebase Authentication with your Ember application easily with providers for Ember Simple Auth and Torii
-
Analytics Collection - The
AnalyticsRouteMixin
adds Google Analytics screen tracking to your Ember Router. -
Offline Enabled - Persist Ember Data models offline automatically with
FirestoreAdapter
- Fastboot Compatible - Perform initial rendering and fetching of your models server-side to increase application performance
Installation
$ ember install emberfire@next
Example use
// app/adapters/application.js
import FirestoreAdapter from 'emberfire/adapters/firestore';
export default FirestoreAdapter.extend({
enablePersistence: true,
persistenceSettings: { synchronizeTabs: true }
});
// app/models/article.js
import DS from 'ember-data';
const { attr, belongsTo, hasMany } = DS;
export default DS.Model.extend({
title: attr('string'),
body: attr('string'),
publishedAt: attr('date'),
author: belongsTo('user'),
comments: hasMany('comments', { subcollection: true }),
});
// app/routes/articles.js
import Route from '@ember/routing/route';
import RealtimeRouteMixin from 'emberfire/mixins/realtime-route';
import PerformanceRouteMixin from 'emberfire/mixins/performance-route';
export default Route.extend(RealtimeRouteMixin, PerformanceRouteMixin, {
model() {
return this.store.query('article', { orderBy: 'publishedAt' });
}
});
// app/routes/application.js
import AnalyticsRouteMixin from 'emberfire/mixins/analytics-route';
import Route from '@ember/routing/route';
export default Route.extend(AnalyticsRouteMixin);
Documentation
Compatibility
Please consult this table when selecting your version of EmberFire and Firebase SDK:
Ember Data | EmberFire | Firebase SDK |
---|---|---|
3.0+ | 3.x | 5.x |
2.3+ | 2.x | 3.x |
2.0 - 2.2 | 1.6.x | 2.x |
1.13 | 1.5.x | 2.x |
Migration Guides
Contributing
If you'd like to contribute to EmberFire, please first read through our contribution guidelines. Local setup instructions are available here.
最近版本更新:(数据更新于 1970-01-01 00:00:00)
2019-10-13 00:10:51 v3.0.0-rc.6
2019-10-12 10:40:31 v3.0.0-rc.5
2019-10-09 04:14:09 v3.0.0-rc.4
2019-05-31 20:01:33 v3.0.0-rc.3
2019-05-23 02:58:38 v3.0.0-rc.2
2019-02-11 15:14:56 v3.0.0-rc.1
2018-03-27 04:57:24 v2.0.10
2018-01-24 07:43:09 v2.0.9
2017-09-01 01:26:02 v2.0.8
2017-04-27 02:13:40 v2.0.7
主题(topics):
ember-data, emberjs, firebase, firebase-sdk, firestore, google-analytics, javascript, messaging, performance-monitoring, realtime-database
FirebaseExtended/emberfire同语言 TypeScript最近更新仓库
2024-11-22 01:36:46 twentyhq/twenty
2024-11-21 22:40:05 LLOneBot/LLOneBot
2024-11-21 20:34:48 CopilotKit/CopilotKit
2024-11-21 16:58:07 labring/FastGPT
2024-11-21 16:14:54 RSSNext/Follow
2024-11-21 16:12:23 x-extends/vxe-table