Skip to content

rlivsey/fireplace

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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