From b0fadc28b8480c4fb304887e432fed0993497fa2 Mon Sep 17 00:00:00 2001 From: okzapradhana Date: Tue, 22 Jun 2021 10:20:10 +0800 Subject: [PATCH] add environment variable setup to readme --- Readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Readme.md b/Readme.md index 40d8fda..0da1fd8 100644 --- a/Readme.md +++ b/Readme.md @@ -23,6 +23,18 @@ Realtime data transport from Backend Team that sends JSON payload to BigQuery as pip install -r requirements.txt ``` +### Environment Variables +Create `.env` on root of your project directory that corresponds to `.env.example` in this repository which are: +``` +GOOGLE_APPLICATION_CREDENTIALS= +PROJECT_ID= +DATASET_ID= +TOPIC_ID= +SUBSCRIPTION_ID= +``` +**Note:**
+Points your `GOOGLE_APPLICATION_CREDENTIALS` to your service account file path. + ### Google Cloud 1. Install [gcloud](https://cloud.google.com/sdk/docs/quickstart) if you haven't installed it yet. 2. Simply run the bash script named `pubsub.sh` to create the topic and subscriber which will subscribe/listen to created topic/