Skip to content
Snippets Groups Projects

feat: run services locally

Merged Bastien DUMONT requested to merge services-locally into master
2 files
+ 24
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -21,4 +21,26 @@ File location is determined after the build, see [here](https://forge.grandlyon.
## Ecolyo services
Service code are located under ``src\targets\services``.
Service code are located under `src\targets\services`.
## Run services
### On alpha
To run services on alpha, a script `get_instance_triggers.sh` allows you to get triggers associated with services. You can find the corresponding service by looking at the trigger frequency and comparing it with our [manifest.webapp](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/ecolyo/-/blob/dev/manifest.webapp#L171).
Then you need to run the script `launch_instance_trigger.sh`.
### Locally
To run services on a local dev environment, you need to run a build first.
Then you need to run :
```sh
yarn run cozy-konnector-dev -m manifest.webapp <service.js>
# example
yarn run cozy-konnector-dev -m manifest.webapp ./build/services/enedisHalfHourMonthlyAnalysis/ecolyo.js
```
More details on the [cozy docs / Services / Execution](https://docs.cozy.io/en/howTos/dev/services/#execution).
Loading