haxe-firebase

Firebase Externs for Javascript
https://github.com/jefvel/haxe-firebase

To install, run:

haxelib install haxe-firebase 1.0.3 

See using Haxelib in Haxelib documentation for more information.

README.md

Haxe-Firebase🔥

This is a simple Haxe(3.3.0) extern wrapper lib for firebase. Currently only the javascript target is supported.

To get started: Just run code the same way as stated on the firebase documentation: https://firebase.google.com/docs/reference/js/

Example

var config = {
  apiKey: "api-key",
  authDomain: "domain.firebaseapp.com",
  databaseURL: "https://databaseurl.firebaseio.com",
  storageBucket: "bucket-id.appspot.com",
  messagingSenderId: "messaging-sender-id"
};

var app = firebase.Firebase.initializeApp(config);

app.database().ref("test").set("wow").then(function(e) {
  trace("Set value!");
});

Notice for haxe <3.3.0

If you're using a haxe version older than 3.3.0, the js-classic compiler flag has to be set

-D js-classic
Contributors
jefvel
Version
1.0.3
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github