Adding reference docs + paramterized some environment variables + new firebase environments. + firebase ref docs.

This commit is contained in:
Patrick Fic
2020-05-01 17:06:52 -07:00
parent 4699b10093
commit c404ff377c
7 changed files with 153 additions and 63 deletions

15
_reference/firebase.md Normal file
View File

@@ -0,0 +1,15 @@
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 <projectname>
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