https://github.com/amiel/ember-data-relationships-examples
https://github.com/amiel/ember-data-relationships-examples
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amiel/ember-data-relationships-examples
- Owner: amiel
- Created: 2017-05-05T18:33:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-30T20:37:30.000Z (almost 9 years ago)
- Last Synced: 2025-10-11T11:16:26.973Z (8 months ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ember-data-relationships-examples
This ember app contains examples to demonstrate the concepts discussed in my blog series: "[How Ember Data Loads Async Relationships][]".
[How Ember Data Loads Async Relationships]: http://www.amielmartin.com/blog/2017/05/05/how-ember-data-loads-relationships-part-1/
## Installation
* `git clone https://github.com/amiel/ember-data-relationships-examples.git` this repository
* `cd ember-data-relationships-examples`
* `yarn install`
## Running / Development
* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).
## What's Inside
This example application is a psuedo blog. It has posts and comments and other relationships on the post to demonstrate various scenarios of loading data through relationships.
All of the data is hard-coded as JSON:API in the adapters. This results in some long files with data. The benefit, though, is that it makes it very obvious which adapter callback is called for each piece of data.