hevelius / io-functions-app

IO platform APIs for the app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IO Functions for IO App

This project implements the APIs to enable the functionalities implemented in the IO app. The APIs are called by the app backend. The implementation is based on the Azure Functions v2 runtime.

Architecture

The project is structured as follows:

Contributing

Setup

Install the Azure Functions Core Tools.

Install the dependencies:

$ yarn install

Create a file local.settings.json in your cloned repo, with the following contents:

{
  "IsEncrypted": false,
  "Values": {
    "FUNCTIONS_WORKER_RUNTIME": "node",
    "WEBSITE_NODE_DEFAULT_VERSION": "10.14.1",
    "AzureWebJobsStorage": "<JOBS_STORAGE_CONNECTION_STRING>",
    "APPINSIGHTS_INSTRUMENTATIONKEY": "<APPINSIGHTS_KEY>",
    "MESSAGE_CONTAINER_NAME": "message-content",
    "COSMOSDB_NAME": "<COSMOSDB_DB_NAME>",
    "COSMOSDB_KEY": "<COSMOSDB_KEY>",
    "COSMOSDB_URI": "<COSMOSDB_URI>",
    "WEBHOOK_CHANNEL_URL": "<WEBHOOK_URL>",
    "QueueStorageConnection": "<QUEUES_STORAGE_CONNECTION_STRING>",
    "AssetsStorageConnection": "<ASSETS_STORAGE_CONNECTION_STRING>",
    "STATUS_ENDPOINT_URL": "<APP_BACKEND_INFO_ENDPOINT>",
    "STATUS_REFRESH_INTERVAL_MS": "<STATUS_REFRESH_INTERVAL_MS>",
    "SUBSCRIPTIONS_FEED_TABLE": "SubscriptionsFeedByDay"
  },
  "ConnectionStrings": {}
}

Starting the functions runtime

$ yarn start

The server should reload automatically when the code changes.

About

IO platform APIs for the app


Languages

Language:TypeScript 98.9%Language:Dockerfile 0.8%Language:Handlebars 0.2%Language:JavaScript 0.1%