equal
deleted
inserted
replaced
39 * `npm build` (shortcut for `ember build --environment=production` which serve the application) |
39 * `npm build` (shortcut for `ember build --environment=production` which serve the application) |
40 * Visit /dist to check the built files |
40 * Visit /dist to check the built files |
41 |
41 |
42 ## Api configuration |
42 ## Api configuration |
43 |
43 |
44 * As Ember advices, all the logic of the api (host, namespace), is located in /adapters/application.js |
44 * As Ember advices, all the logic of the api (host, namespace), is located in `adapters/application.js`. |
|
45 * Two ways are provided: |
|
46 * `Fixture`: deprecated in Ember and have been move out. We know use `ember-data-fixture-adapter` which provides the same behavior. |
|
47 **However** it doesn't allow the use of `this.store.findRecord(...)` function. In our case it won't trigger the api request for the full document information (therefore doesn't get the sound urls). --> **Only use for testing** |
|
48 |
|
49 * `RESTAdapter`: The Common way of plugging in Ember with a Rest server. |