Git Product home page Git Product logo

io-functions-pushnotifications's Introduction

IO Functions Push Notification

This Azure Function Project manages all the aspects related to the Push Notifications.

It uses the Azure Notification Hub to enable the push notifications and the device management.

Sviluppo in locale

cp env.example .env
cp local.settings.json.example local.settings.json
yarn install --frozen-lockfile
yarn build
yarn start
open http://localhost/some/path/test

Environment variables

Those are all Environment variables needed by the application:

Variable name Description type Required
SLOT_TASK_HUBNAME The unique slot task hubname string true
APPINSIGHTS_INSTRUMENTATIONKEY A valid Application Insights instrumentation key string true
STORAGE_CONN_STRING The connection string of the Storage Account string true
NOTIFICATIONS_QUEUE_NAME The name of the queue that stores the Notification messages string true
NH_PARTITION_FEATURE_FLAG The type of FF enabled fot NH partition. Possible values: "none" - "all" - "beta" - "canary" string true
CANARY_USERS_REGEX The regex used to discriminate canary users string true

Notification Hubs

Variable name Description type Required
AZURE_NH_HUB_NAME The name of the Legacy Notification Hub string true
AZURE_NH_ENDPOINT The endpoint of the Legacy Notification Hub Namespace string true
NH1_ENDPOINT The endpoint of the first namespace of Notification Hub string true
NH1_NAME The name of the Notification Hub in the first namespace string true
NH1_PARTITION_REGEX The regex which defines the user subset associated with the first namespace Namespace string true
NH2_ENDPOINT The endpoint of the second namespace of Notification Hub string true
NH2_NAME The name of the Notification Hub in the second namespace string true
NH2_PARTITION_REGEX The regex which defines the user subset associated with the second namespace Namespace string true
NH3_ENDPOINT The endpoint of the third namespace of Notification Hub string true
NH3_NAME The name of the Notification Hub in the third namespace string true
NH3_PARTITION_REGEX The regex which defines the user subset associated with the third namespace Namespace string true
NH4_ENDPOINT The endpoint of the forth namespace of Notification Hub string true
NH4_NAME The name of the Notification Hub in the forth namespace string true
NH4_PARTITION_REGEX The regex which defines the user subset associated with the forth namespace Namespace string true

Deploy

Deployment is automatized by a pipeline

io-functions-pushnotifications's People

Contributors

balanza avatar burnedmarshal avatar dependabot[bot] avatar fabriziopapi avatar gquadrati avatar michaeldisaro avatar pagopa-github-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.