Files
bodyshop/_reference/Documents/firebase.md
2024-10-25 11:21:10 -07:00

700 B

  1. Create a new project
  2. Setup sign in methods to be user and email only.
  3. Update .env to include config.
  4. Setup the Firebase CLI
    1. cd to client firebase at server directory.
    2. ensure all dependencies installed
      1. $ npm install firebase-functions@latest firebase-admin@latest --save
      2. $ npm install -g firebase-tools
    3. $ firebase login //Login as needed.
  5. Set the current projct
    1. firebase use
  6. Deploy the function
    1. $ firebase deploy --only functions
  7. Add the allowed domains.
  8. Update server variables including FIREBASE_ADMINSDK_JSON, FIREBASE_DATABASE_URL
  9. Create the firestore and copy the rules from dev for userinstances.