From a958b54928164bbb1a458f3bae669a509d33a55e Mon Sep 17 00:00:00 2001 From: Oz Gitelson <47493278+OzGitelson@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:05:40 -0500 Subject: [PATCH] add basic CAS login api integration --- firebase.json | 91 +++++++++++++++++++------------------- frontend/index.html | 65 +++++++++++++++++++++++++-- functions/.gitignore | 0 functions/main.py | 39 ++++++++++++++++ functions/requirements.txt | 2 + package-lock.json | 6 +++ 6 files changed, 154 insertions(+), 49 deletions(-) create mode 100644 functions/.gitignore create mode 100644 functions/main.py create mode 100644 functions/requirements.txt create mode 100644 package-lock.json diff --git a/firebase.json b/firebase.json index f3036a6..f299602 100644 --- a/firebase.json +++ b/firebase.json @@ -1,19 +1,20 @@ { - // "functions": [ - // { - // "source": "functions", - // "codebase": "default", - // "ignore": [ - // "venv", - // ".git", - // "firebase-debug.log", - // "firebase-debug.*.log" - // ] - // } - // ], - // "database": { - // "rules": "database.rules.json" - // }, + "functions": [ + { + "source": "functions", + "codebase": "default", + "ignore": [ + "venv", + ".git", + "firebase-debug.log", + "firebase-debug.*.log" + ], + "requirements": "functions/requirements.txt" + } + ], + "database": { + "rules": "database.rules.json" + }, "hosting": { "public": "frontend", "ignore": [ @@ -26,35 +27,35 @@ }, "storage": { "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 } - // "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 - // } } diff --git a/frontend/index.html b/frontend/index.html index 25d2b3d..411f6b9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,9 +1,66 @@ - +
-Hello World
+ + +