Ember CLI
Mirage

@samselikoff

The Problem

Possible solutions:

  • Proxying
  • Clientside mocks
  • Serverside mocks

Proxying

  • Authoritative
  • No extra setup

PROS

CONS

  • API must exist/come first
  • Less control
  • Harder to set up, CI

Clientside mocks

  • Control
  • Portable

PROS

CONS

  • Duplication/falling out of sync
  • CORS
  • Lack of conventions

Serverside mocks

  • Control
  • Proxying
  • Powerful

PROS

CONS

  • Duplication/falling out of sync
  • Lack of conventions
  • Harder to set up, CI

Mirage

  • Clientside mocks
  • Conventions
  • Some ideas for "falling out of sync" problem

Demo

Improvements:

  • Managing ids
  • Relationships
  • Serializers
  • Websocket
  • Fake data

Falling out of sync

  1. Interface test
  2. Mirage proxy -> server

Thanks!

ember-cli-mirage.com

@samselikoff

Ember CLI Mirage

By Sam Selikoff

Ember CLI Mirage

  • 2,325