ember-pt-config
v0.1.2
Published
The default blueprint for ember-cli addons.
Downloads
5
Readme
Ember-pt-config
This add-on provides:
- Pitchtarget authenticator for
ember-simple-auth
ptApi
service to do authenticated API call to the Pitchtarget APIs
The ptApi
service is injected on every route by an initializer. This service depends
on a session
service to be available: at the moment this must be a service following
the ember-simple-auth
session service interface.
Installation
- Add to your package.json
"ember-pt-config": "https://[email protected]/pitchtarget/ember-pt-config.git"
npm install
Configuration
The ptApi
service needs to know the API base URL and the client ID. These have to be
defined in your app's configuration file (config/environment.js
):
ptApi: {
baseUrl: 'https://my-api.com'
clientId: 'bha8719IHDEW78'
}
Contributing
Development install
git clone
this repositorynpm install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.