0.4.0 • Published 8 years ago

fireplace v0.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Fireplace

Fireplace is an Ember.js addon for Firebase.

Build Status

Installation

Install as an Ember CLI addon:

npm install --save-dev fireplace

Then run the generator to install dependencies (Firebase from Bower):

ember generate fireplace

Quick Example

// app/models/person.js
import {Model, attr, hasOne, hasMany} from 'fireplace';

export default Model.extend({
  firstName: attr(),
  lastName: attr(),
  age: attr("number"),
  avatar: hasOne()  
});
// app/routes/people.js
import Ember from 'ember';
export default Ember.Route.extend({
  model() {
    // list all people
    return this.store.fetch("person");
  }
});
// app/routes/person.js
import Ember from 'ember';
export default Ember.Route.extend({
  model(params) {
    return this.store.fetch("person", params.person_id);
  }
});

See the documentation for more details.

Development

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

0.4.0

8 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.11

9 years ago

0.2.10

9 years ago

0.2.9

9 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago