Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.11 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.11 KB

App written in Sveltekit and deployed on Google Cloud Platform with Cloud Functions allowing for OCR from images and text summarization, developed under the supervision of Google

How to run

  1. Fill the values in vars.tf

  2. Create a .env in main directory with following fields:

VITE_FIREBASE_API_KEY= API KEY HERE // After step 3.
VITE_FIREBASE_APP_ID= APP ID HERE // After step 3.
VITE_FIREBASE_USE_EMULATOR=false
VITE_FIREBASE_AUTH_DOMAIN=notesreader.firebaseapp.com
VITE_STORAGE_BUCKET_DEFUALT=notesreader.appspot.com
VITE_HTTPFUNCTION_URL = DEPLOYED FUNCTION URL
VITE_PROJECT_ID=notesreader
VITE_CLOUDFUNCTION_REGION = europe-west1
  1. Run terraform init and terraform apply

  2. Fill the missing values in .env (API KEY and APP ID)

  3. Edit functions/src/consts.ts to comply with the values entered in .env (PROJECT_NAME)

  4. Enable Authentication by email and Google in Firebase console

  5. Run firebase deploy --only functions

  6. Run gsutil cors set cors.json gs://notesreader.appspot.com

  7. Run firebase experiments:enable webframeworks

  8. Make sure you are on Node 20 and Run firebase deploy