karang

karang

Accessing Firestore from Elixir

Hello I was wondering if some one could help me with accessing firestore from Elixir. So far the team here has only had to use the firestore data from javascript which has a library and is very straightforward. Elixir seems to have some solutions like the following:

https://github.com/dunyakirkali/firestore.ex

But the docs are not so great and I am not so familiar with firestore. I have been provided with an api key as well as a secret key. I was hoping some one could share how they set up one of the above libraries or maybe how to set up for REST api usage. Basically how do I plug in these keys so I can make queries to firestore. Thanks!!

First Post!

karang

karang

When I figure this out I promise to post the setup and contribute to the docs of any of the above projects.

Most Liked

TylerSustare

TylerSustare

Hey all :waving_hand: I actually ran into this myself recently and wanted to leave this breadcrumb if anyone else runs into this issue.

I created a small example repo here GitHub - TylerSustare/phx_fire · GitHub that uses goth and google_api_firestore hex packages to interract with firestore successfully.

Where Next?

Popular in Questions Top

jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New

Other popular topics Top

New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement