Firebase
How do I make an firebase?
What is a firebase? How do you make a firebase? This script and codes were developed by Dovydas on 16 October 2022, Sunday.
Firebase - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Firebase</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>
</head>
<body> <div class="container"> <h1>Firebase</h1> <p> JavaScript apps are very powerful. They are also, however, very limited. Imagine if after working with gmail for a while you refresh the page and all your changes are reset. To save the state (changes) the new state has to be saved to the database. Historicaly, this meant having set up a backend like PHP, Pyton, Ruby or Node.js. We live in more civilized world now and there are alternatives. Firebase and Parse (by Facebook) were very popular options until Facebook decided to shut Parse down. It was great news for Firebase, which was promptly aquired by Google and increased it's services and support. There are alternatives to Firebase. RethinkDB with Horizon or Meteor are more powerful options, which allows you to have a full functionig backend with little configuration. </p> <h3>Drag and drop libraries</h3> <ul> <li>Dragula</li> <li>Sortable</li> <li>React drag and drop</li> </ul> <h3>Firebase example: List</h3> <form class="js-firebase-form form-inline"> <div class="form-group"> <label for="firebase-input">Add new item: </label> <input type="text" class="form-control" id="firebase-input" placeholder="Item"> </div> <button type="submit" class="btn btn-default">Add</button> </form> <h3>Exercise</h3> <h4>Goal: set up your firebase account and recreate my example</h4> <h4>Tests:</h4> <ul> <li>Should work exactly like my example</li> </ul>
</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src='https://www.gstatic.com/firebasejs/3.2.1/firebase.js'></script> <script src="js/index.js"></script>
</body>
</html>
Firebase - Script Codes JS Codes
"use strict";
$(function () { var config = { apiKey: "AIzaSyDi0R4t2y-HckjF-wTPWP195yDco_PMxjI", authDomain: "html201-1e1cd.firebaseapp.com", databaseURL: "https://html201-1e1cd.firebaseio.com", storageBucket: "html201-1e1cd.appspot.com" }; firebase.initializeApp(config); $('.js-firebase-form').on('submit', function (event) { event.preventDefault(); var email = '[email protected]'; var password = '123456'; var item = $('#firebase-input').val(); firebase.auth().signInWithEmailAndPassword(email, password).then(function (user) { var database = firebase.database(); database.ref('list').push(item); $('#firebase-input').val(''); }).catch(function (error) { console.log(error.message); }); });
});
Developer | Dovydas |
Username | tmxyz |
Uploaded | October 16, 2022 |
Rating | 3 |
Size | 3,093 Kb |
Views | 22,264 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Further Learning | 1,692 Kb |
Academy Class Demo | 2,024 Kb |
JavaScrip Training | 1,985 Kb |
Homework | 1,689 Kb |
Background | 1,593 Kb |
Project. Part 2 | 1,439 Kb |
President Exercise | 2,661 Kb |
Libraries | 3,809 Kb |
Bootstrap | 1,819 Kb |
Main | 3,864 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Toolbar | Onsen | 5,414 Kb |
FCC - Tribute Page | Cmwebby | 0 Kb |
Vertically rotating text with CSS | Nopr | 2,141 Kb |
Myprofile | SoufianeAbid | 2,451 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
CSS Colors | Alexpate | 2,232 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
A Pen by Bryan Rojas | Bryanrojas | 1,873 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!