haxe-firebase 1.0.3

Firebase Externs for Javascript

Released 2016-11-16.

To install, run:

haxelib install haxe-firebase 1.0.3

See using Haxelib in Haxelib documentation for more information.

Maintainerjefvel
Websitehttps://github.com/jefvel/haxe-firebase
Current version1.0.3
StatisticsInstalled 92 times
LicenseMIT
Tags

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