Serializes and restores the ember-data store for fastboot
Branch: master
Clone or download
ef4 Merge pull request #15 from arschmitz/has-many-links
Add relationship links to serialized data
Latest commit 637a20c Aug 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addon
app
config
fastboot/instance-initializers
tests
vendor
.editorconfig
.ember-cli
.eslintrc.js
.gitignore
.npmignore
.travis.yml
.watchmanconfig
LICENSE.md
README.md
ember-cli-build.js
index.js
package.json
testem.js
yarn.lock

README.md

Ember-data-fastboot

This addon serializes the contents of your ember-data Store within the Fastboot shoebox. It happens like this:

  1. Your application renders in the fastboot server.
  2. At the end of fastboot rendering, all your Ember Data Models get serialized into the fastboot shoebox (which uses tags like <script type="fastboot/shoebox">).
  3. Your application boots up in the browser. This addon's instance-initializer notices the serialized models and uses pushPayload to load them into the Store.
  4. As your app renders in the browser, any store.findRecord, etc will locate the already cached models.

JSON-API Required

Right now, this addon assumes that your application is using DS.JSONAPISerializer as your application's default serialization method. See https://github.com/cardstack/ember-data-fastboot/issues/3 if you're interested in making it work for any format.

Installation

ember install ember-data-fastboot

Starting with version 0.1.0 this addon requires at least ember-cli-fastboot 1.0.0-rc.1.