Ejemplo de aplicación con firebase full js
js/key.js
// Initialize Firebase
var config = {
apiKey: "YOU API KEY",
authDomain: "YOU AUTH DOMAIN",
databaseURL: "YOU DATABASE URL",
projectId: "YOU PROJECT ID",
storageBucket: "YOU STORAGE BUCKET",
messagingSenderId: "YU MESSAGING SENDER ID"
};
firebase.initializeApp(config);
$ npm install -g http-server
$ cd app/ && bower install
$ http-server app/ -o -p <port>