This addon provides Ember-Data abstractions for the Twitch API v3.
ember install ember-data-twitch
TBA
All requests to the Twitch API require a CLIENT_ID
unique to your application.
This should be set on an ember-data-twitch
hash in the object exported by your app's config/environment.js
:
// config/environment.js
module.exports = function(environment) {
var ENV = {
'ember-data-twitch': {
CLIENT_ID: <YOUR_CLIENT_ID>
}
};
return ENV;
};
How this value is retrieved and stored within your application is up to you, but
for good security practice, we recommend making use of ember-cli-dotenv
.
This section outlines the details of collaborating on this Ember addon.
git clone [email protected]:elwayman02/ember-data-twitch.git
cd ember-data-twitch/
npm install
bower install
Register your Twitch application here.
Once you have a client key, create a .env
file at the root of your project and add the following:
TWITCH_CLIENT_ID=yourtwitchclientid
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.