Skip to content

colbymchenry/full-schedule

Repository files navigation

Full Schedule

Everything you need to run a private practice, powered by svelte, deployed to Vercel.

Enable Firebase Cloud Storage

Make sure to setup the proper PERMISSIONS

For more info on Cloud Storage permissions go here.

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}

Enable Firebase Firestore Database

Make sure to setup the proper PERMISSIONS

For more info on Firestore permissions go here.

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth != null;
    }
  }
}

Setup index

CollectionID: appointments
Fields indexed: staff -> Ascending | cancelled -> Ascending
Query Scope: Collection

Add Domain Name to Firebase Authorized Domains

Go to Authentication -> Settings Tab -> Authorized Domains

Setup OAuth

Enable OAuth in Firebase for Google, Copy Client ID and Client Secret to API settings

After that go to Consent Screen Setup in API & Services at Google Console.

Edit the Service Account generated by Google add the Javascript Origin and the Redirect URI

Also go to OAuth Consent Screen go to Edit App and add their Google OAuth email as an authorized user !!TODO Publish APP!!

Go to https://console.cloud.google.com/apis/library/calendar-json.googleapis.com to enable Google Calendar API

Setup Environment Variables

GOOGLE_API_KEY=AIzaSyC89dBUy8LxrKmMINw-YLLl3FbWhL6dcfs