Skip to content
This repository was archived by the owner on Nov 12, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ Make use of the many generators for code, try `ember help generate` for more det
* `ember build` (development)
* `ember build --environment production` (production)

### To Run Against the Elixir/Phoenix API in the Blog Post

Change `app/adapters/application.js` to this:
```
// export { default } from 'ember-data-fixture-adapter';
import JSONAPIAdapter from 'ember-data/adapters/json-api';

export default JSONAPIAdapter.extend({
});
```
* Start the Elixir Phoenix app on port 4000
* `ember server --proxy http://localhost:4000`

### Deploying

Specify what it takes to deploy your app.
Expand Down
6 changes: 6 additions & 0 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
// comment out the next line to make the app access the elixir REST API
export { default } from 'ember-data-fixture-adapter';

// uncomment the next lines to make the app access the elixir REST API
// import JSONAPIAdapter from 'ember-data/adapters/json-api';
// export default JSONAPIAdapter.extend({
// });