- Google Cloud SDK
- GO
- Firebase admin SDK to GO
To get gcloud to see here
-
Donwload sdk according to your operating system here
-
Add GO to path
- If you have Linux, you can edit at vim
~/.profileand add the next line
export PATH=$PATH:/usr/local/go/binand also
export GOPATH=$HOME/{Folder Route, where your GO projects will be}- Run, to use GO Modules
$ echo "export GO111MODULE=on" >> ~/.bash_profile$ go get -u firebase.google.com/go$ git clone git@github.com:banderablanca/cloudfunctions.git$ cd cloudfunctions$ go get
$ go mod tidy- To select project run:
$ gcloud config set project {projectID}- At the root of the project run:
$ go get- After run:
$ bash run.sh {projectID} - Deploy finished!