Skip to content

Commit

Permalink
fixing deployment using firebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyj4586 committed Oct 5, 2024
1 parent ed07392 commit 67832db
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 106 deletions.
29 changes: 15 additions & 14 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
robots.txt,1728065890197,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2
manifest.json,1728065890196,4e1d3adad9ce7e17c0d13fac197f1c27091906f4ecf3909c9f51247bff345118
asset-manifest.json,1728065896394,56a84d7fcf7ec56a029ca8b003abdc23c556f506e1dcf27fc22c740b8da71802
favicon.ico,1728065890194,1463be9bedc82e16f9364eec7a1f5152cbe56229401381eed65c1496cb884407
index.html,1728065896394,96fd358195667f3be88ffd6b41a66fc205705c76d06aa051fb8d951cde1daccc
logo192.png,1728065890194,f66564670b5bfe49f3f04a5b63107bae60f4a7736f1d3b83aa0115f7acf45150
logo512.png,1728065890195,2356e0b814e58a349935c8de17226873d615d088a867d591fef48a64c80c9a2f
static/js/main.94647385.js.LICENSE.txt,1728065896405,f1e6f3b89e571630bbb2362d78102c8f8a79ccbdd453349c1ac5e3943cf1c1b4
static/js/453.c81cf1c9.chunk.js,1728065896405,6588deb569f5848669b47746cc279b70b8500ee758f1c657d2a74e9e19a1df1b
static/js/453.c81cf1c9.chunk.js.map,1728065896404,e3bd5c44ea1304528bf52f3a4bf02f5b29ee27aa04388124995200278bad00fd
static/css/main.e60f6a87.css,1728065896405,c82daac54420de051fbaed5dc7de41ede7b5dd3b3952b0b083853883421d3adf
static/css/main.e60f6a87.css.map,1728065896404,4aa56f7403ce0c428b95406ed239acd1c7bb55184cf0016c5d3ab2b0ada688ca
static/js/main.94647385.js,1728065896405,5a895a7d93d09f3aa16d4fccbf0c24dbc59acd0ace971b1b85754684563908ae
static/js/main.94647385.js.map,1728065896405,7f58ab82550024542d9129993ba4ef4a73ecdca4669e9698be457ab645332bd4
robots.txt,1728100601530,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2
manifest.json,1728100601530,4e1d3adad9ce7e17c0d13fac197f1c27091906f4ecf3909c9f51247bff345118
index.html,1728100607229,96fd358195667f3be88ffd6b41a66fc205705c76d06aa051fb8d951cde1daccc
favicon.ico,1728100601529,1463be9bedc82e16f9364eec7a1f5152cbe56229401381eed65c1496cb884407
logo512.png,1728100601530,2356e0b814e58a349935c8de17226873d615d088a867d591fef48a64c80c9a2f
404.html,1728100601529,b6abfbdc894d37c260154e281499dc6415bb6ad76b32f01ef94dee93aa897ac4
logo192.png,1728100601530,f66564670b5bfe49f3f04a5b63107bae60f4a7736f1d3b83aa0115f7acf45150
asset-manifest.json,1728100607229,56a84d7fcf7ec56a029ca8b003abdc23c556f506e1dcf27fc22c740b8da71802
static/js/main.94647385.js.LICENSE.txt,1728100607240,f1e6f3b89e571630bbb2362d78102c8f8a79ccbdd453349c1ac5e3943cf1c1b4
static/js/453.c81cf1c9.chunk.js,1728100607242,6588deb569f5848669b47746cc279b70b8500ee758f1c657d2a74e9e19a1df1b
static/js/453.c81cf1c9.chunk.js.map,1728100607240,e3bd5c44ea1304528bf52f3a4bf02f5b29ee27aa04388124995200278bad00fd
static/css/main.e60f6a87.css,1728100607240,c82daac54420de051fbaed5dc7de41ede7b5dd3b3952b0b083853883421d3adf
static/css/main.e60f6a87.css.map,1728100607240,4aa56f7403ce0c428b95406ed239acd1c7bb55184cf0016c5d3ab2b0ada688ca
static/js/main.94647385.js,1728100607240,5a895a7d93d09f3aa16d4fccbf0c24dbc59acd0ace971b1b85754684563908ae
static/js/main.94647385.js.map,1728100607240,7f58ab82550024542d9129993ba4ef4a73ecdca4669e9698be457ab645332bd4
9 changes: 8 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
},
"homepage": "https://queued-6a1d3.web.app"
}
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"react-scripts": "^5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "firebase deploy"
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "firebase deploy"
},
"eslintConfig": {
"extends": [
Expand All @@ -45,6 +45,7 @@
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3"
Expand Down
99 changes: 15 additions & 84 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,89 +1,20 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to Firebase Hosting</title>

<!-- update the version number as needed -->
<script defer src="/__/firebase/10.14.0/firebase-app-compat.js"></script>
<!-- include only the Firebase features as you need -->
<script defer src="/__/firebase/10.14.0/firebase-auth-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-database-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-firestore-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-functions-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-messaging-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-storage-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-analytics-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-remote-config-compat.js"></script>
<script defer src="/__/firebase/10.14.0/firebase-performance-compat.js"></script>
<!--
initialize the SDK after all desired features are loaded, set useEmulator to false
to avoid connecting the SDK to running emulators.
-->
<script defer src="/__/firebase/init.js?useEmulator=true"></script>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px; border-radius: 3px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>React App</title>
</head>
<body>
<div id="message">
<h2>Welcome</h2>
<h1>Firebase Hosting Setup Complete</h1>
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
<a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
</div>
<p id="load">Firebase SDK Loading&hellip;</p>

<script>
document.addEventListener('DOMContentLoaded', function() {
const loadEl = document.querySelector('#load');
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
// // The Firebase SDK is initialized and available here!
//
// firebase.auth().onAuthStateChanged(user => { });
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
// firebase.firestore().doc('/foo/bar').get().then(() => { });
// firebase.functions().httpsCallable('yourFunction')().then(() => { });
// firebase.messaging().requestPermission().then(() => { });
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
// firebase.analytics(); // call to activate
// firebase.analytics().logEvent('tutorial_completed');
// firebase.performance(); // call to activate
//
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

try {
let app = firebase.app();
let features = [
'auth',
'database',
'firestore',
'functions',
'messaging',
'storage',
'analytics',
'remoteConfig',
'performance',
].filter(feature => typeof app[feature] === 'function');
loadEl.textContent = `Firebase SDK loaded with ${features.join(', ')}`;
} catch (e) {
console.error(e);
loadEl.textContent = 'Error loading the Firebase SDK, check the console.';
}
});
</script>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
</html>

0 comments on commit 67832db

Please sign in to comment.