Skip to content
Snippets Groups Projects
Commit a58e282d authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

update sge example

parent a7a00a95
No related branches found
No related tags found
No related merge requests found
Pipeline #92138 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment