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
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
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
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
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

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
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
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
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement