Vue & Firebase lecture default source
Download the source to your desired location
$ git clone https://github.com/fkkmemi/vf test
$ cd test
Dependencies installation
$ yarn # front-end install
$ cd functions && yarn # back-end install
$ cd ..
Change to whatever name you like
public/index.html
<title>This is my web</title>
package.json
{
"name": "my-web",
"description": "my web"
}
site connect
https://console.firebase.google.com
Activation of authentication
Activation of database
Activation of storage
firebaseConfig file make
./firebaseConfig.js
export default {
apiKey: 'AIzaSyBLUOZIpmKBO9ImYk_FrFa1IHr6u_VygOM',
authDomain: 'new-project-f36b8.firebaseapp.com',
databaseURL: 'https://new-project-f36b8.firebaseio.com',
projectId: 'new-project-f36b8',
storageBucket: 'new-project-f36b8.appspot.com',
messagingSenderId: '556943987787',
appId: '1:556943987787:web:76773c1159b3cac930a9ce'
}
copy key.json
new-project-f36b8-e568f7f61e3c.json -> /functions/key.json
Spark plan is too restrictive and is hard to use
spark -> blaze
$ sudo npm i firebase-tools -g # If you don't have firebase-tools
$ firebase login # If you are not logged in
$ firebase use --add
? Which project do you want to add?
❯ new-project-f36b8
? What alias do you want to use for this project? (e.g. staging) default
Created alias default for new-project-f36b8.
Now using alias default (new-project-f36b8)
Admin Email Settings
$ cd functions
$ firebase functions:config:set admin.email=abcd@xxx.com
Runtime file generation
$ cd functions
$ firebase functions:config:get>.runtimeconfig.json
site connect
.git file remove
$ rm -rf .git # mac or linux
push your repository
$ git init
$ git commit -m "first commit"
$ git add .
$ git remote add origin https://github.com/user/xxx.git
$ git push -u origin master
$ yarn serve:be
$ yarn serve
$ yarn deploy
$ yarn deploy:be
$ yarn deploy:fe