Skip to content

Latest commit

 

History

History
95 lines (80 loc) · 2.17 KB

README.md

File metadata and controls

95 lines (80 loc) · 2.17 KB

RDD-web

Web App for Rock Displacement Dashboard.

Uses Managed Identity from Azure to locate secrets.

In .env.local be sure to set KeyVault_Name to the current unique key vault name. You should also be added to the Developers group in Azure, and have done az login to use Default Credentials to get access to the key vault.

Getting Started

First, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Technologies used and references

Data schema

The following schema/index mapping is used for storing sensor data.

{
  "mappings": {
    "properties": {
      "deltaMovementInMm": {
        "type": "float"
      },
      "readingDate": {
        "type": "date"
      },
      "readingPlacement": {
        "properties": {
          "depthInMeter": {
            "type": "float"
          },
          "x": {
            "type": "long"
          },
          "y": {
            "type": "long"
          }
        }
      },
      "sensor": {
        "type": "nested",
        "properties": {
          "id": {
            "type": "keyword"
          },
          "placement": {
            "properties": {
              "depthInMeter": {
                "type": "float"
              },
              "x": {
                "type": "long"
              },
              "y": {
                "type": "long"
              }
            }
          }
        }
      },
      "sensorId": {
        "type": "keyword"
      },
      "status": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      }
    }
  }
}