Firebase

Developer
Size
3,093 Kb
Views
22,264

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 Previews

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); }); });
});
Firebase - Script Codes
Firebase - Script Codes
Home Page Home
Developer Dovydas
Username tmxyz
Uploaded October 16, 2022
Rating 3
Size 3,093 Kb
Views 22,264
Do you need developer help for Firebase?

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!

Dovydas (tmxyz) Script Codes
Create amazing video scripts with AI!

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!