ember-airtable
v0.0.5
Published
Ember addon for Airtable APIs
Downloads
87
Maintainers
Readme
ember-airtable
Ember addon for Airtable APIs
Dummy app: https://github.com/benoror/ember-airtable/tree/master/tests/dummy/app
Medium post: https://medium.com/@benoror/creating-an-ember-addon-for-airtable-api-d9e38d7bef97#.33q0r7hhm
*Originally based on: https://github.com/benoror/fieldbook-app
Usage
Install
ember install ember-airtable
Adapter
Use AirtableAdapter as you application's main adapter:
adapters/application.js
:
import AirtableAdapter from "ember-airtable/adapter";
export default AirtableAdapter.extend({
// API Version + Base ID
namespace: 'v0/app_YOUR_AIRTABLE_BASE_KEY',
headers: {
'Accept': 'application/json',
// API Token
'Authorization': `Bearer key_YOUR_AIRTABLE_API_KEY`
}
});
Serializer
Use AirtableSerializer as you application's main serializer:
serializers/application.js
:
import AirtableSerializer from "ember-airtable/serializer";
export default AirtableSerializer.extend();
Development
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com/.