UNPKG

3.26 kBMarkdownView Raw
1# EmberFire [![Build Status](https://travis-ci.org/firebase/emberfire.svg?branch=master)](https://travis-ci.org/firebase/emberfire) [![Test Coverage](https://codeclimate.com/github/firebase/emberfire/badges/coverage.svg)](https://codeclimate.com/github/firebase/emberfire/coverage) [![Version](https://badge.fury.io/gh/firebase%2Femberfire.svg)](http://badge.fury.io/gh/firebase%2Femberfire) [![Monthly Downloads](http://img.shields.io/npm/dm/emberfire.svg?style=flat)](https://www.npmjs.org/package/emberfire) [![Ember Observer Score](http://emberobserver.com/badges/emberfire.svg)](http://emberobserver.com/addons/emberfire) [![Code Climate](https://codeclimate.com/github/firebase/emberfire/badges/gpa.svg)](https://codeclimate.com/github/firebase/emberfire)
2
3EmberFire is the officially supported adapter for using
4[Firebase](http://www.firebase.com/?utm_medium=web&utm_source=emberfire) with
5[Ember Data](https://github.com/emberjs/data).
6
7Join our [Firebase Google Group](https://groups.google.com/forum/#!forum/firebase-talk)
8to ask technical questions, share apps you've built, and chat with other developers in the community.
9
10
11## Table of Contents
12
13 * [Getting Started With Firebase](#getting-started-with-firebase)
14 * [Installation](#installation)
15 * [Compatibility](#compatibility)
16 * [Documentation](#documentation)
17 * [Migration Guides](#migration-guides)
18 * [Contributing](#contributing)
19
20
21## Getting Started With Firebase
22
23EmberFire requires [Firebase](https://firebase.google.com/) in order to authenticate users and sync
24and store data. Firebase is a suite of integrated products designed to help you develop your app,
25grow your user base, and earn money. You can [sign up here for a free account](https://console.firebase.google.com/).
26
27
28## Installation
29
30```bash
31$ ember install emberfire
32```
33
34Update `config/environment.js`
35
36```js
37// config/environment.js
38var ENV = {
39 firebase: {
40 apiKey: 'xyz',
41 authDomain: 'YOUR-FIREBASE-APP.firebaseapp.com',
42 databaseURL: 'https://YOUR-FIREBASE-APP.firebaseio.com',
43 storageBucket: 'YOUR-FIREBASE-APP.appspot.com',
44 }
45}
46```
47
48Get these values from the [Firebase Console](https://console.firebase.google.com/) by clicking the **[Add Firebase to your web app]** button on the project overview page.
49
50## Compatibility
51
52Please consult this table when selecting your version of EmberFire and Firebase SDK:
53
54| Ember Data | EmberFire | Firebase SDK |
55| ------------------| ----------|--------------|
56| 1.13+ | 1.5.x | 2.x |
57| 2.0 - 2.2 | 1.6.x | 2.x |
58| 2.3+ | 2.0.x | 3.x |
59| canary | master | 3.x |
60
61*To install the `master` branch, use `ember install firebase/emberfire#master`*
62
63Also note that due to the Firebase 3.0 SDK, you cannot run tests with PhantomJS 1.0 or 2.0.
64
65
66## Documentation
67
68* [Quickstart](docs/quickstart.md)
69* [Guide](docs/guide/README.md)
70
71
72## Migration Guides
73
74* [Migrating from EmberFire `1.x.x` to `2.x.x`](docs/migration/1XX-to-2XX.md)
75
76
77## Contributing
78
79If you'd like to contribute to EmberFire, please first read through our [contribution
80guidelines](.github/CONTRIBUTING.md). Local setup instructions are available [here](.github/CONTRIBUTING.md#local-setup).