File tree Expand file tree Collapse file tree 7 files changed +45
-2
lines changed Expand file tree Collapse file tree 7 files changed +45
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "projects": {
3
+ "default": "neat-ring-403815"
4
+ }
5
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "functions" : [
3
+ {
4
+ "source" : " functions" ,
5
+ "codebase" : " default" ,
6
+ "ignore" : [
7
+ " venv" ,
8
+ " .git" ,
9
+ " firebase-debug.log" ,
10
+ " firebase-debug.*.log"
11
+ ]
12
+ }
13
+ ]
14
+ }
Original file line number Diff line number Diff line change
1
+ venv
Original file line number Diff line number Diff line change
1
+ # Welcome to Cloud Functions for Firebase for Python!
2
+ # To get started, simply uncomment the below code or create your own.
3
+ # Deploy with `firebase deploy`
4
+
5
+ from firebase_functions import https_fn
6
+ from firebase_admin import initialize_app
7
+
8
+ # initialize_app()
9
+ #
10
+ #
11
+ # @https_fn.on_request()
12
+ # def on_request_example(req: https_fn.Request) -> https_fn.Response:
13
+ # return https_fn.Response("Hello world!")
Original file line number Diff line number Diff line change
1
+ firebase_functions ~= 0.1.0
Original file line number Diff line number Diff line change 1
1
GitPython == 3.1.40
2
2
python-dotenv == 1.0.0
3
+ firebase-functions
4
+ firebase-admin
Original file line number Diff line number Diff line change 3
3
import tempfile
4
4
5
5
import requests
6
- from dotenv import load_dotenv
7
6
from git import Repo
8
7
9
- load_dotenv ()
8
+ # The Cloud Functions for Firebase SDK to create Cloud Functions and set up triggers.
9
+ from firebase_functions import firestore_fn , https_fn
10
+
11
+ # The Firebase Admin SDK to access Cloud Firestore.
12
+ from firebase_admin import initialize_app , firestore
13
+ import google .cloud .firestore
14
+
15
+ app = initialize_app ()
16
+
10
17
BASE_URL = os .environ .get ("BASE_URL" )
11
18
PASSWORD_HEADER = os .environ .get ("PASSWORD_HEADER" )
12
19
You can’t perform that action at this time.
0 commit comments