GINRO 1 rok temu
rodzic
commit
22cc7c8e88

+ 5
- 0
.firebaserc Wyświetl plik

@@ -0,0 +1,5 @@
1
+{
2
+  "projects": {
3
+    "default": "gsi-hris-self-service"
4
+  }
5
+}

+ 7
- 0
database.rules.json Wyświetl plik

@@ -0,0 +1,7 @@
1
+{
2
+  /* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
3
+  "rules": {
4
+    ".read": false,
5
+    ".write": false
6
+  }
7
+}

+ 20
- 0
firebase.json Wyświetl plik

@@ -0,0 +1,20 @@
1
+{
2
+  "functions": [
3
+    {
4
+      "source": "functions",
5
+      "codebase": "default",
6
+      "ignore": [
7
+        "node_modules",
8
+        ".git",
9
+        "firebase-debug.log",
10
+        "firebase-debug.*.log"
11
+      ],
12
+      "predeploy": [
13
+        "npm --prefix \"$RESOURCE_DIR\" run lint"
14
+      ]
15
+    }
16
+  ],
17
+  "remoteconfig": {
18
+    "template": "remoteconfig.template.json"
19
+  }
20
+}

+ 14
- 0
functions/.eslintrc.js Wyświetl plik

@@ -0,0 +1,14 @@
1
+module.exports = {
2
+  root: true,
3
+  env: {
4
+    es6: true,
5
+    node: true,
6
+  },
7
+  extends: [
8
+    "eslint:recommended",
9
+    "google",
10
+  ],
11
+  rules: {
12
+    quotes: ["error", "double"],
13
+  },
14
+};

+ 1
- 0
functions/.gitignore Wyświetl plik

@@ -0,0 +1 @@
1
+node_modules/

+ 9
- 0
functions/index.js Wyświetl plik

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

+ 2551
- 0
functions/package-lock.json
Plik diff jest za duży
Wyświetl plik


+ 26
- 0
functions/package.json Wyświetl plik

@@ -0,0 +1,26 @@
1
+{
2
+  "name": "functions",
3
+  "description": "Cloud Functions for Firebase",
4
+  "scripts": {
5
+    "lint": "eslint .",
6
+    "serve": "firebase emulators:start --only functions",
7
+    "shell": "firebase functions:shell",
8
+    "start": "npm run shell",
9
+    "deploy": "firebase deploy --only functions",
10
+    "logs": "firebase functions:log"
11
+  },
12
+  "engines": {
13
+    "node": "16"
14
+  },
15
+  "main": "index.js",
16
+  "dependencies": {
17
+    "firebase-admin": "^10.0.2",
18
+    "firebase-functions": "^3.18.0"
19
+  },
20
+  "devDependencies": {
21
+    "eslint": "^8.9.0",
22
+    "eslint-config-google": "^0.14.0",
23
+    "firebase-functions-test": "^0.2.0"
24
+  },
25
+  "private": true
26
+}

+ 1
- 0
remoteconfig.template.json Wyświetl plik

@@ -0,0 +1 @@
1
+{}

Ładowanie…
Anuluj
Zapisz