add functions

This commit is contained in:
Andrew
2023-02-17 11:45:10 +00:00
parent e34c05ddc9
commit e970403087
8 changed files with 6742 additions and 1 deletions

1
functions/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules/

9
functions/index.js Normal file
View File

@ -0,0 +1,9 @@
const functions = require("firebase-functions");
// // Create and deploy your first functions
// // https://firebase.google.com/docs/functions/get-started
//
// exports.helloWorld = functions.https.onRequest((request, response) => {
// functions.logger.info("Hello logs!", {structuredData: true});
// response.send("Hello from Firebase!");
// });

6122
functions/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

23
functions/package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase emulators:start --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "16"
},
"main": "index.js",
"dependencies": {
"firebase-admin": "^11.5.0",
"firebase-functions": "^4.2.0"
},
"devDependencies": {
"firebase-functions-test": "^3.0.0"
},
"private": true
}