Nearly all Ember apps interact with a JSON API. When you reach the point during development where you need to interact with dynamic server data, you have a few options:
Option 1 can work if you already have the API - but often that isn’t the case. Option 2 is flexible, but requires you to start from scratch in each project, leaving it up to you to enforce conventions across your apps. Option 3 has a bit more structure, but requires a node server to be running, and doesn’t allow you to use your mocks in a CI environment.
Mirage was built to solve these problems. It’s a mock server that runs in the client, and can be used in both development and testing. It brings along enough conventions to quickly get you up and running.
Mirage borrows concepts from typical backend systems like
Once you define your server, developing and testing your Ember app is a breeze. Read on to learn more!