giusdp

giusdp

Liveview with Supabase and GraphQL

I was wondering about migrating my liveview project to supabase from ecto/postgres. I know there are already some discussions about using supabase in this forum but they are mostly about praising supabase as a good fit for any solo dev project (which is my case), and none about approaches to use it in elixir.

Unfortunately there are no well maintained elixir libraries out there (only found supabase-elixir from 2 years ago) but then I saw that supabase also offers a graphql api on top of the database, so maybe I can just use any graphql client library. Searching for one I found Neuron, so I could use that to talk with supabase from liveview.

Is anyone here using a similar approach? Or what other approaches/stacks are you using with supabase?

I understand that moving the DB/backend to supabase means that liveview is being used only for the frontend but I don’t really want to use other languages or frameworks :sweat_smile: I’d prefer to keep using elixir.

I’m just curious about your thoughts and solutions about this!

Most Liked

giusdp

giusdp

I was attracted by the extra features of supabase so I wanted to try it (db editor, auth with social logins, serverless functions etc). I don’t know why I defaulted to “I can’t use ecto with it” though! So thanks. I will definitely keep using ecto.

I also would love to expand my app in the future with multiple frontends so I think starting out with a baas system would be the best… although I’m looking at liveview native for the future.

Where Next?

Popular in Discussions Top

matthias_toepp
I’d love to hear what people think about Wisp, the new Gleam web framework started by Gleam’s primary creator Louis Pilfold. Gleam, alon...
New
jswny
I would like to better understand what the advantages/disadvantages of umbrella applications are compared to structuring your app as as s...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39523 209
New
chuck
Let me start by stating an assumption: Phoenix is a great approach to building REST APIs. There are many reasons for this, but I will ass...
New
ejpcmac
I have discovered Nix last month and I am currently on my way to migrating to it—both on macOS at home and the full NixOS distrubution at...
New
marciol
Please, let me know if this kind of discussion already took place in another topic . Hi all, how do you consider if is better to build ...
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
und0ck3d
Hello everyone! A few days ago I’ve created a topic here about how people were creating CMSs with Elixir and Phoenix. I’ve been studying...
New
opsb
We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is runn...
New
kostonstyle
Hi all How can I compare haskell with elixir, included tools, webservices, ect. Thanks
New

Other popular topics Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31194 112
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31307 143
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54250 245
New

We're in Beta

About us Mission Statement