hi you all,
I'm trying to start up a simple javascript web project using the firebase database,
and added to my html file this to the header:
___________________________________________________________________________
<head>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
___________________________________________________________________________
and to my js file:
___________________________________________________________________________
var firebaseConfig = {
apiKey: "AIzaSyDxIc5z4g3xUu01Du5_rKm5eKPUSQIfoZg",
projectId: "eko-home-assignment-6e3a2",
storageBucket: "",
messagingSenderId: "189458946837",
appId: "1:189458946837:web:95614c48d4ae8871"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
// Get a reference to the database service
var database = firebase.database();
___________________________________________________________________________
and when I run the app on my http-server localhost on chrome I get:
player.js:24 Uncaught ReferenceError: firebase is not defined
at player.js:24
what am I doing wrong?
just so you know I managed to do the "firebase init" command and didn't manage to do "firebase deploy" and also didn't do hosting during the installation steps.
thanks a lot,
Yael