Get 1 Free Tip Every Day

Latest Tips

#8 Easy Model Design

Here is a super easy way to visually design your models http://andycrum.github.io/ember-data-model-maker/
You can add all the models you need in the UI and you can even setup relationships. The tool will show you the commands you should run in ember CLI, just copy and paste and voila.
It even shows you how the generated models will look like in ES6 and “classic” mode.

Bonus

My favorite part though is that it shows you the JSON expected by your adapter and you can toggle between REST, JSON API and Active Model adapters.
Here is the REST JSON:
Here is the JSON API JSON:
Here is Active Model JSON: