Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.28 KB

README.md

File metadata and controls

62 lines (45 loc) · 1.28 KB

Shah Cloud Services

Setup

  1. Create a Firebase App

  2. In Firebase, create a firestore database (in test mode!)

  3. In Firebase, create storage

  4. In Firebase, set storage rules to the following

     service firebase.storage {
       match /b/{bucket}/o {
         match /{allPaths=**} {
           allow read, write
         }
       }
     }
    
  5. Clone the Git Repository Anywhere

  6. Edit src/utility/config.js and replace the config data with the data from Firebase (go to Firebase Project Overview -> Add an App -> Web)

     let config = {
         apiKey: "API_KEY",
     	authDomain: "AUTH_DOMAIN",
     	databaseURL: "DATABASE_URL",
     	projectId: "PROJECT_ID",
     	storageBucket: "STORAGE_BUCKET",
     	messagingSenderId: "MESSAGING_SENDER_ID"		  };
      
     export default config
    

Firebase Deploy Method 7. Install Firebase Tools

	npm install -g firebase-tools
	firebase login
	firebase init
  1. NPM Install

     npm install
     npm run-script build
    
  2. Deploy

     firebase deploy
    

Alternative Github Deploy Method

  1. Build Project npm run-script build

  2. Create gh-pages branch

     cd build/
     git init
     git checkout -b gh-pages
     git add -A
     git commit -m "Create GH-Pages"
     git remote add origin <url>
     git push origin gh-pages
    
  3. Enable Site in Settings-> GH-Pages