EmberScreencast 189 - Testing Part 2: The ember-cli-mirage database

Опубликовано: 25 Март 2026
на канале: EmberSchool
911
10

Originally published at EmberScreencasts.com on Oct 21, 2016. https://www.emberscreencasts.com/post...

How do you quickly build up a server and the associated database?

In this episode we define the '/monsters' to return 10 fully defined monsters and '/monsters/:id' to return the correct monster.

To do that, we create our first ember-cli-mirage factory and scenario, then combine it with some routing tricks.

Links:
ember-cli-mirage quickstart guide - http://www.ember-cli-mirage.com/docs/...

Want to learn Ember 2? Go to https://www.emberschool.com