0.1.2 • Published 8 years ago
ember-pt-config v0.1.2
Ember-pt-config
This add-on provides:
- Pitchtarget authenticator for
ember-simple-auth ptApiservice 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://bugant@bitbucket.org/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 clonethis repositorynpm install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.