# fireplace

> A Firebase model library for Ember.js

Latest version **0.4.0** (published 2016-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install fireplace
pnpm add fireplace
yarn add fireplace
bun add fireplace
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2016-01-06 |
| First published | 2014-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 61 |
| Author | Richard Livsey |
| Maintainers | rlivsey |
| Keywords | ember-addon, firebase |

## Links

- npm: https://www.npmjs.com/package/fireplace
- Repository: https://github.com/rlivsey/fireplace
- Homepage: https://github.com/rlivsey/fireplace#readme
- Issues: https://github.com/rlivsey/fireplace/issues
- npm.io page: https://npm.io/package/fireplace

## Dependencies (3)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.5
- [ember-inflector](https://npm.io/package/ember-inflector.md) ^1.9.0
- [ember-getowner-polyfill](https://npm.io/package/ember-getowner-polyfill.md) 1.0.0

## Recent versions

- 0.4.0 (latest) — 2016-01-06
- 0.3.8 — 2015-08-19
- 0.3.7 — 2015-08-10
- 0.3.6 — 2015-07-13
- 0.3.5 — 2015-06-30
- 0.3.4 — 2015-06-30
- 0.3.3 — 2015-06-22
- 0.3.2 — 2015-03-16
- 0.3.1 — 2015-02-16
- 0.3.0 — 2015-02-04
- 0.2.11 — 2015-01-06
- 0.2.10 — 2015-01-05
- 0.2.9 — 2014-11-13
- 0.2.8 — 2014-10-27
- 0.2.7 — 2014-10-24
- … 8 more at https://npm.io/package/fireplace/versions

## README

# Fireplace

Fireplace is an [Ember.js](http://emberjs.com) addon for [Firebase](http://firebase.com).

[![Build Status](https://travis-ci.org/rlivsey/fireplace.svg?branch=master)](https://travis-ci.org/rlivsey/fireplace)

## 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

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

export default Model.extend({
  firstName: attr(),
  lastName: attr(),
  age: attr("number"),
  avatar: hasOne()  
});
```

```javascript
// app/routes/people.js
import Ember from 'ember';
export default Ember.Route.extend({
  model() {
    // list all people
    return this.store.fetch("person");
  }
});
```

```javascript
// 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](http://livsey.org/fireplace) for more details.

### Development

## Installation

* `git clone` this repository
* `npm install`
* `bower install`

## Running

* `ember server`
* Visit your app at http://localhost:4200.

## Running Tests

* `ember test`
* `ember test --server`

## Building

* `ember build`

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

---
_Source: https://npm.io/package/fireplace · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
