Re:Rails 7.1 Released
by tonyedgecombe on Friday October 06, 2023 @05:43AM
(#37788741)
I thought Ember was a front end framework or am I missing something?
Re:Rails 7.1 Released
by cookiengineer on Friday October 06, 2023 @08:43AM
(#37790008)
The idea behind ember-data [2] is that the models and their relationships are defined on the frontend side, which implies that the models are the single source of truth for both the frontend and the backend, including the APIs themselves. Ember adheres to json api specification, but there is lots of adapters for other database query languageds and/or storage types [1]
As I said in my previous post, it's a framework based on conventions, so it'd a batteries-included approach to both frontend and backend.
[1] https://emberobserver.com/categories/ember-data-adapters
Architecture-wise I really like the ember-data approach because it allows a lot of automations when it comes to left join/right joins of datasets, with an integrated mockup server etc.
But it's not as cool as the other ones I guess, because it just works too well enough!?
[1] https://emberjs.com/