開發環境 Java + IntelliJ IDEA Terminal GCP Cloud SDK Firebase 登入GCP - 開發專案如果權限沒有另外設定,依預設登入的google專案 ( Google Cloud SDK Shell ) ---2018/08/21 updated--- gcloud auth login gcloud auth application-default login gcloud config set project {projId} Deploy Dataflow ( Terminal ) 1.到專案的資料夾 cd {path} 2.deploy gardle (在專案的目錄下執行) gradle run -Pargs="--project= {projId} --runner=DataflowRunner --tempLocation=gs:// {bucket name} /temp --stagingLocation=gs:// {bucket name} /staging" 新增GCP專案 Real-time databse & 取得 GCP Auth http://beaminguna.blogspot.tw/2017/11/firebase-gcp-real-time-databse-gcp-auth.html 建立Pubsub -> 新增訂閱 -> 發布訊息 -> 接收訊息 ( Google Cloud SDK Shell ) gcloud init gcloud components install beta gcloud beta pubsub topics create myTopic gcloud beta pubsub subscriptions create --topic myTopic mySubscription gcloud beta pubsub topics publish myTopic "hello" gcloud beta pubsub subscriptions pull --auto-ack myS