Skip to content

Set of Azure functions to store and enrich biz events from EventHub to CosmosDB

License

Notifications You must be signed in to change notification settings

pagopa/pagopa-biz-events-datastore

Repository files navigation

pagoPA Functions template

Java template to create an Azure Function.

Function examples

There is an example of a Http Trigger function.


Run locally with Docker

docker build -t pagopa-functions-template .

cp .env.example .env

and replace in .env with correct values, then typing :

docker run -p 80:80 --env-file=./.env pagopa-functions-template

Test

curl http://localhost:8999/example

Run locally with Maven

On terminal and typing :

cp local.settings.json.example local.settings.json

then replace

  • EVENTHUB_CONN_STRING and COSMOS_CONN_STRING with real one connection string
  • COSMOS_DB_CONTAINER_NAME and COSMOS_DB_NAME with correct value

to doc details about AZ fn config see here

mvn clean package

mvn azure-functions:run

Test

curl http://localhost:7071/example


Configure the SonarCloud project 👉 guide.