From a58e282d5c2ee7cc87a7c4d709f6ac5f6ed016f9 Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Tue, 6 Feb 2024 17:14:52 +0100 Subject: [PATCH] update sge example --- docs/konnectors/enedis-sge.md | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/docs/konnectors/enedis-sge.md b/docs/konnectors/enedis-sge.md index 198c3a2..5de3d59 100644 --- a/docs/konnectors/enedis-sge.md +++ b/docs/konnectors/enedis-sge.md @@ -38,29 +38,7 @@ In order to have better comfort while coding, we have enable ts-checking with vs ### Local dev -In order to local test you have to put the following configuration in `konnector-dev-config`: - -```json -{ - "COZY_URL": "http://cozy.tools:8080", - "fields": { - "pointId": "<POINT_ID>", - "lastname": "<LASTNAME>", - "firstname": "<FIRSTNAME>", - "address": "<ADDRESSE>", - "sgeLogin": "donnees.energie@grandlyon.com", - "postalCode": "<CP>", - "city": "<CITY>", - "contractId": "<CONTRACT_ID ex: 1234567>", - "wso2BaseUrl": "https://apis.grandlyon.fr", - "boBaseUrl": "https://ecolyo-agent-rec.grandlyon.com/api/sge", - "boToken": "<BO_TOKEN>", - "apiToken": "<SGE_TOKEN>" - } -} -``` - -Replace every `<***>` with your test values and corresponding secrets. +In order to local test you have to copy the [konnector-dev-config.example.json](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/enedis-sge-konnector/-/blob/dev/konnector-dev-config.example.json?ref_type=heads) to `konnector-dev-config.json` and replace values and corresponding secrets. !!! warning "user consent" While running in dev mode, be sure to have user consent, either on production env or with enedis standard form. @@ -69,6 +47,7 @@ You can now run the following commands to run the konnector : ```sh yarn standalone #Run inside shell with no cozy env dependencies +yarn standalone-no-data #Run inside shell without getting any data yarn dev #Run with your local cozy. For this one you need local stack to run yarn onDeleteAccount:standalone #Run onDeleteAccount script yarn onDeleteAccount #Run onDeleteAccount script with real cozy -- GitLab