Skip to content

Commit

Permalink
Merge pull request #18 from bcgov/feat/get-support-network-info
Browse files Browse the repository at this point in the history
WIP: GET support network info (case/incident/sr)
  • Loading branch information
hannah-macdonald1 authored Nov 1, 2024
2 parents da83034 + 1c73fe0 commit d736b2a
Show file tree
Hide file tree
Showing 45 changed files with 2,462 additions and 20 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RECORD_CACHE_MS = 60000

ACCESS_TOKEN_URL='url here'
CLIENT_ID='id here'
CLIENT_SECRET='secret here'
UPSTREAM_BASE_URL=http://www.google.com
SUPPORT_NETWORK_ENDPOINT=/endpoint/path/here
5 changes: 5 additions & 0 deletions docs/ONBOARDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ To install the project, use

```bash
$ npm install
$ npm install -g pino-pretty
```
This will install all dependencies, as well as pre-commit hooks for formatting, linting and running tests.
Note the global install of pino-pretty is for prettifying logs when using watch, debug or development mode. This is so this dependency doesn't need to be installed in production.

## Compile and run the project

Expand All @@ -21,6 +23,9 @@ $ npm run start
# watch mode (rebuilds on change)
$ npm run start:dev

# debug mode
$ npm run start:debug

# production mode
$ npm run start:prod
```
Expand Down
56 changes: 56 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,60 @@ spec:
- containerPort: {{ .Values.service.containerPort }}
resources: {{- toYaml .Values.resources | nindent 12 }}
imagePullPolicy: Always
env:
- name: NODE_ENV
valueFrom:
secretKeyRef:
name: visitz-api
key: NODE_ENV
- name: RECORD_CACHE_MS
valueFrom:
secretKeyRef:
name: visitz-api
key: RECORD_CACHE_MS
- name: UPSTREAM_BASE_URL
valueFrom:
secretKeyRef:
name: visitz-api
key: UPSTREAM_BASE_URL
- name: SUPPORT_NETWORK_ENDPOINT
valueFrom:
secretKeyRef:
name: visitz-api
key: SUPPORT_NETWORK_ENDPOINT
- name: CASE_ENDPOINT
valueFrom:
secretKeyRef:
name: visitz-api
key: CASE_ENDPOINT
- name: INCIDENT_ENDPOINT
valueFrom:
secretKeyRef:
name: visitz-api
key: INCIDENT_ENDPOINT
- name: SR_ENDPOINT
valueFrom:
secretKeyRef:
name: visitz-api
key: SR_ENDPOINT
- name: MEMO_ENDPOINT
valueFrom:
secretKeyRef:
name: visitz-api
key: MEMO_ENDPOINT
- name: ACCESS_TOKEN_URL
valueFrom:
secretKeyRef:
name: visitz-api
key: ACCESS_TOKEN_URL
- name: CLIENT_ID
valueFrom:
secretKeyRef:
name: visitz-api
key: CLIENT_ID
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
name: visitz-api
key: CLIENT_SECRET
restartPolicy: Always
Loading

0 comments on commit d736b2a

Please sign in to comment.