Skip to content

Commit

Permalink
Update app.js - adiciona login
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorosemberg authored Aug 1, 2024
1 parent 4172e7f commit 329022b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
var admin = require("firebase-admin");

var serviceAccount = require("path/to/serviceAccountKey.json");

admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});

document.addEventListener('DOMContentLoaded', () => {
const accountNameInput = document.getElementById('account-name');
const accountBalanceInput = document.getElementById('account-balance');
Expand Down Expand Up @@ -190,4 +198,5 @@ document.addEventListener('DOMContentLoaded', () => {
updateTransactionCategories();
updateTotalBalance();
updateCharts();

});

0 comments on commit 329022b

Please sign in to comment.