Skip to content

Haxe externs for firebase. Currently JavaScript only.

Notifications You must be signed in to change notification settings

jefvel/haxe-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Haxe externs for firebase. Currently JavaScript only.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages