Skip to content

Firebase library for Ember.js

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

pk4media/fireplace

 
 

Repository files navigation

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/.

About

Firebase library for Ember.js

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.9%
  • HTML 1.1%