-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tester file for the firebase database
- Loading branch information
1 parent
f1e8385
commit c184db5
Showing
1 changed file
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<title>Lost and Found</title> | ||
<body> | ||
Welcome to the Lost and Found! | ||
<br> | ||
I changed it. | ||
<head> | ||
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-auth.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-database.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-firestore.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-messaging.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-functions.js"></script> | ||
<meta charset="UTF-8"> | ||
<title>Firebase Tutorial 😄</title> | ||
</head> | ||
<body> | ||
|
||
Item Name | ||
<input id="name" type="text" name="name"><br> | ||
|
||
<br> | ||
It is now connected to a FireBase database.....I think. | ||
</body> | ||
Item Description | ||
<input id="description" type="text" name="description"><br> | ||
|
||
Qty | ||
<input id="qty" type="text" name="qty"><br> | ||
|
||
Owner Location | ||
<input id="location" type="text" name="ownerLocation"><br> | ||
|
||
Owner Name | ||
<input id="ownerName" type="text" name="ownerName"><br> | ||
|
||
<!-- This code came from FireBase in order to connect to the database we created there --> | ||
<script src="https://www.gstatic.com/firebasejs/5.1.0/firebase.js"></script> | ||
<script> | ||
// Initialize Firebase | ||
var config = { | ||
apiKey: "AIzaSyCZnmgHZG4SgzgdhR8mvXPyMiYwgNJfG_Q", | ||
authDomain: "lostfound-b80fc.firebaseapp.com", | ||
databaseURL: "https://lostfound-b80fc.firebaseio.com", | ||
projectId: "lostfound-b80fc", | ||
storageBucket: "", | ||
messagingSenderId: "919579258670" | ||
}; | ||
firebase.initializeApp(config); | ||
</script> | ||
</html> | ||
<button id="save" type="button">Click Me!</button> | ||
|
||
<script src= "scripts.js"></script> | ||
</body> | ||
</html> |