GithubHelp home page GithubHelp logo

jsmestad / flame Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 90 KB

Elixir wrapper for Firebase Authentication & Google Identity APIs

Elixir 98.43% Makefile 1.57%
elixir firebase firebase-auth google-identity

flame's Introduction

Flame

An Elixir wrapper around the Firebase Authentication / Google Identity Platform APIs.

As of 0.1.x, Flame only creates a minimal UserRecord with Firebase. Please open a PR if you'd like to add additional parameters to the create_user and update_user requests.

Installation

If available in Hex, the package can be installed by adding flame to your list of dependencies in mix.exs:

def deps do
  [
    {:flame, "~> 0.1.0"}
  ]
end
config :flame, Flame,
  credentials: System.get_env("GOOGLE_APPLICATION_CREDENTIALS_JSON"),
  project: "my-project-1234",
  issuer: "https://securetoken.google.com/my-project-1234",
  cookie_issuer: "https://session.firebase.google.com/my-project-1234"

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/flame.

Development

Getting the development environment set up can be involved as the test suite relies on Firebase Emulator.

Contributors are welcome for improving this setup. It is not ideal by any means.

brew install firebase-cli
firebase login
firebase init # Select emulators, create new project

Visit Firebase console and download a copy of the service account credentials. Set the contents of that file to GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable.

Running tests locally

IMPORTANT: You need to modify config/test.exs to the appropriate values for your key.

You can either run firebase emulators:exec --only auth "mix test" OR you can run firebase emulators:start --only auth in your terminal, then in another window run mix test.

flame's People

Contributors

jsmestad avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.