Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.08 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.08 KB

Firebase Admin Ruby SDK

The Firebase Admin Ruby SDK enables access to Firebase services from privileged environments (such as servers or cloud) in Ruby.

For more information, visit the Firebase Admin SDK setup guide.

This gem is currently in alpha and not recommended for production use (yet).

Installation

Add this line to your application's Gemfile:

gem 'firebase-admin-sdk', git: 'https://github.com/navazka/firebase-admin-sdk-ruby.git'

And then execute:

$ bundle install

Usage

Application Default Credentials

gem 'firebase-admin-sdk'

app = Firebase::Admin::App.new

Using a service account

gem 'firebase-admin-sdk'

creds = Firebase::Admin::Credentials.from_file('service_account.json')
app = Firebase::Admin::App.new(credentials: creds)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cheddar-me/firebase-admin-sdk.

License

The gem is available as open source under the terms of the MIT License.