# ember-syncano

> The Ember CLI addon for seemlessly interacting with Syncano.

Latest version **0.2.1** (published 2016-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-syncano
pnpm add ember-syncano
yarn add ember-syncano
bun add ember-syncano
```

## 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.2.1 |
| Published | 2016-10-11 |
| First published | 2016-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zach Garwood |
| Maintainers | twac05 |
| Keywords | ember-addon, syncano |

## Links

- npm: https://www.npmjs.com/package/ember-syncano
- npm.io page: https://npm.io/package/ember-syncano

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.5

## Recent versions

- 0.2.1 (latest) — 2016-10-11
- 0.2.0 — 2016-04-26
- 0.1.0 — 2016-03-29

## README

# Ember-Syncano

An Ember CLI addon for seemlessly interacting with [Syncano](https://www.syncano.io/).

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

## Installation

`ember install ember-syncano`

## Configuration

Add your credentials to your app's `config/environment.js`:
```javascript
syncano: {
  accountKey: 'your-account-key',
  apiKey: 'your-api-key',
  instance: 'your-instance-name'
},
```

## Usage

Create models based on your Syncano Classes, then use Ember Data's store
like you normally would!

To use a Codebox, first inject the service into your route/component:
`syncano: Ember.inject.service(),`

Then call the `result()` method to get a Promise of the Codebox's result:
```javascript
let codeboxId = 123;
let payload = { key_one: 'value_one', key_two: 'value_two' };
this.get('syncano')
    .codebox(codeboxId)
    .result(payload)
    .then(function(result) {
        doSomething(result);
    });
```

## Development

### Get the code

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

### Run the dummy app

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

## Run the tests

To test against the current version of Ember:
`ember test`

To test multiple versions of Ember:
`npm test`

(PhantomJS is commented out because it seems to fail tests due to some issue
with Promise.)

## Building

* `ember build`

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