Skip to content

Commit

Permalink
add environment variable setup to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
okzapradhana committed Jun 22, 2021
1 parent e7cb8fd commit b0fadc2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**<br>
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/
Expand Down

0 comments on commit b0fadc2

Please sign in to comment.