Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pagopa-archive/io-functions-cgn-merchant
https://github.com/pagopa-archive/io-functions-cgn-merchant
Last synced: about 12 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/pagopa-archive/io-functions-cgn-merchant
- Owner: pagopa-archive
- Archived: true
- Created: 2021-03-05T14:16:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-15T05:42:07.000Z (21 days ago)
- Last Synced: 2025-02-05T02:17:33.042Z (about 12 hours ago)
- Language: TypeScript
- Size: 753 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# IO Functions template
Template per l'utilizzo di Azure Functions (e Durable Functions) all'interno del
progetto IO.Una volta clonato il repo assicurarsi di:
- editare i metadati del repository nel file `package.json`
- specificare un nome per il
[TaskHub](https://docs.microsoft.com/it-it/azure/azure-functions/durable/durable-functions-task-hubs)
in host.json in modo da evitare di condividere lo stesso per function diverse
che usano lo stesso storage- effettuare il [tuning dei parametri per le durable
function](https://docs.microsoft.com/it-it/azure/azure-functions/durable/durable-functions-bindings#host-json)- impostare a `false` il parametro `FUNCTIONS_V2_COMPATIBILITY_MODE` nel file
`local.settings.json` nel caso di upgrade a `[email protected]`- modificare l' endpoint di healthcheck all' interno del file `deploy-pipelines.yml` in base al `basePath` configurato.
## Sviluppo in locale
```shell
cp env.example .env
yarn install
yarn build
docker-compose up -d --build
docker-compose logs -f functions
open http://localhost/some/path/test
```## Deploy
Il deploy avviene tramite una [pipeline](./.devops/deploy-pipelines.yml)
(workflow) configurata su [Azure DevOps](https://dev.azure.com/pagopa-io/).## Esempi di function
Sono presenti alcune function di esempio che permettono di testare la corretta
esecuzione del runtime delle durable functions. Le funzioni attivate
da [trigger HTTP](./HttpTriggerFunction) utilizzano il pacchetto
[io-functions-express](https://github.com/teamdigitale/io-functions-express).