3 ms·
Phoenix (elixir) does exactly what you seem to want. (Easily defining rest APIs from object definitions, automagically establishing sockets for extremely easy
by y4mi 7y ago
Phoenix (elixir) does exactly what you seem to want.
(Easily defining rest APIs from object definitions, automagically establishing sockets for extremely easy communication between backed and frontend, and even things like Phoenix live view to reduce the amount of frontend code you have to write.)
Honestly, it wasn't as great as it seemed when I experimented with it.
The only thing I really used after the first experiment was the auto sockets (which are fantastic). Everything else was basically unusable because straight db bindings are extremely rare. You mostly want to specialize it with custom authentication etc.
And there are better options if you really just want a thin wrapper over you database like postgrest or it's equivalent for graphql.
These can also be extended for custom methods so you're not forced to put everything in the frontend