-
In Firebase, create a firestore database (in test mode!)
-
In Firebase, create storage
-
In Firebase, set storage rules to the following
service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write } } }
-
Clone the Git Repository Anywhere
-
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
-
NPM Install
npm install npm run-script build
-
Deploy
firebase deploy
Alternative Github Deploy Method
-
Build Project npm run-script build
-
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
-
Enable Site in Settings-> GH-Pages