Skip to content

Commit

Permalink
deploying in firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabscg committed Nov 24, 2023
1 parent f8d4d95 commit 146579f
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 2 deletions.
1 change: 1 addition & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.html,1700840883726,247f589d8985ae90ece52b003c3a225f4edabb824f617185a17fa1b79f3d3379
13 changes: 13 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"projects": {
"default": "lanterna-italian.web.app",
"lanterna-italian": {
"projectId": "lanterna-italian",
"databaseURL": "https://lanterna-italian.firebaseio.com",
"storageBucket": "lanterna-italian.appspot.com",
"apiKey": "AIzaSyB-5QZ4Z5QZ4Z5QZ4Z5QZ4Z5QZ4Z5QZ4Z5",
"authDomain": "lanterna-italian.firebaseapp.com",
"messagingSenderId": "123456789"
}
}
}
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1>Firebase Hosting Setup Complete</h1>
<script>
document.addEventListener('DOMContentLoaded', function() {
const loadEl = document.querySelector('#load');
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
// /
// // The Firebase SDK is initialized and available here!
//
// firebase.auth().onAuthStateChanged(user => { });
Expand All @@ -63,7 +63,7 @@ <h1>Firebase Hosting Setup Complete</h1>
// firebase.analytics().logEvent('tutorial_completed');
// firebase.performance(); // call to activate
//
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
//

try {
let app = firebase.app();
Expand Down
21 changes: 21 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyDHil9iLvfsHbBAmp8CKMDU9jVFBiKJWfQ",
authDomain: "lanterna-marketplace-ee30b.firebaseapp.com",
projectId: "lanterna-marketplace-ee30b",
storageBucket: "lanterna-marketplace-ee30b.appspot.com",
messagingSenderId: "21242476103",
appId: "1:21242476103:web:3974b4029222cb0b5e2362",
measurementId: "G-TH7P5X7LKF"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);

0 comments on commit 146579f

Please sign in to comment.