Skip to content

Commit

Permalink
firebase connect
Browse files Browse the repository at this point in the history
  • Loading branch information
defreeze committed Apr 3, 2024
1 parent b29eae3 commit 7037399
Show file tree
Hide file tree
Showing 13 changed files with 334 additions and 371 deletions.
12 changes: 2 additions & 10 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"projects": {
"default": "ai-tarot-v1"
},
"targets": {},
"etags": {
"ai-tarot-v1": {
"extensionInstances": {
"firestore-stripe-payments": "fd81def30fa65e24779d53daa4967e9782f558a996712eeffe5437340c6cd2ad"
}
}
"default": "aitattoogen"
}
}
}
4 changes: 2 additions & 2 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- firebase-switch
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm run build
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
Binary file removed AI_tarot_final1_small.png
Binary file not shown.
Binary file removed aceofcups.png
Binary file not shown.
Binary file removed ai_tarot3.png
Binary file not shown.
Binary file removed challice.png
Binary file not shown.
Binary file removed challice1.png
Binary file not shown.
9 changes: 9 additions & 0 deletions firebase use -add
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
38 changes: 3 additions & 35 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
".git",
"firebase-debug.log",
"firebase-debug.*.log"
],
"predeploy": [
"npm --prefix \"functions\" run lint"
]
}
],
"hosting": {
"public": "build",
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
Expand All @@ -33,37 +30,8 @@
"rules": "storage.rules"
},
"emulators": {
"auth": {
"port": 9099
},
"functions": {
"port": 5001
},
"firestore": {
"port": 8080
},
"database": {
"port": 9000
},
"hosting": {
"port": 5000
},
"pubsub": {
"port": 8085
},
"storage": {
"port": 9199
},
"eventarc": {
"port": 9299
},
"ui": {
"enabled": true
},
"singleProjectMode": true
},
"remoteconfig": {
"template": "remoteconfig.template.json"
},
"remoteconfig": {},
"extensions": {}
}
}
6 changes: 3 additions & 3 deletions functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* const {onDocumentWritten} = require("firebase-functions/v2/firestore");
*
* See a full list of supported triggers at https://firebase.google.com/docs/functions
*
* const { onRequest } = require("firebase-functions/v2/https");
* const logger = require("firebase-functions/logger");
*/

const {onRequest} = require("firebase-functions/v2/https");
const logger = require("firebase-functions/logger");

// Create and deploy your first functions
// https://firebase.google.com/docs/functions/get-started

Expand Down
5 changes: 2 additions & 3 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"devDependencies": {
"eslint": "^8.15.0",
"eslint-config-google": "^0.14.0",
"firebase-functions-test": "^3.1.0",
"@babel/plugin-proposal-private-property-in-object": "*"
"firebase-functions-test": "^3.1.0"
},
"private": true
}
}

0 comments on commit 7037399

Please sign in to comment.