2.5.1 • Published 2 years ago

@citydna/app-townhall-experience-mkw v2.5.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@citydna/app-townhall-experience-mkw

TEMPORARY PACKAGE TO ALLOW PRESENTATIONS AT MKW

Type: platform application Device type supported: Screen, Projection
Public app support: Yes
Deployed location: https://npmjs.com
Config file name: s3://citydna-configs/state-library-victoria/config.json
Theme: dark Screen resolution: 3200x1800 Projection resolution: 1920x1080

Overview

This is one of many platform applications, design to be loaded dynamically into the platform-host-app. It has two entry points:

  • Screen
  • Projection

Each entry point is meant to run in parallel together, with each sharing the same card stack context that is driven via the screen. The Screen will fly to each POI that comes up on the stack, the Map is powered by arcgis. There is a 3D integrated mesh layer which is maintained by the spatial team. THe projection is aerial image that can project layers dynamically as well as highlight blips for POIs from the Screen application.

.env file

Important: the .env file is only needed when you are developing locally with yarn start. Otherwise if you are developing using the platform-host-app, these values will come from that packages .env instead.

You'll have to create a .env file in the root of this app that has the following variables:

Note: The Mapbox env variables in this app are only used in the test shell. The variables are consumed within the app from the AppEnvironmentContextProvider from @citydna/platform.

  • REACT_APP_AMPLIFY_USERNAME - amplify login username
  • REACT_APP_AMPLIFY_PASSWORD - amplify login password
  • REACT_APP_MODEL_EXPERIENCE_LED_SCREEN_BASEMAP_STYLE_URL - style url for the Model Experience LED screen minimap
  • REACT_APP_MODEL_EXPERIENCE_LED_SCREEN_BASEMAP_MAPBOX_API_ACCESS_TOKEN - access token for the Model Experience LED screen minimap
  • REACT_APP_MODEL_EXPERIENCE_PROJECTION_BASEMAP_STYLE_URL - style url for the Model Experience Projection basemap
  • REACT_APP_MODEL_EXPERIENCE_PROJECTION_BASEMAP_MAPBOX_API_ACCESS_TOKEN - access token for the Model Experience Projection basemap
  • REACT_APP_MODEL_EXPERIENCE_PROJECTION_ROUTING_MAPBOX_API_ACCESS_TOKEN - access token for the Model Experience Projection routing service
  • REACT_APP_PUBLIC_APP_URL - the URL of the public app, this is used to create the QR code

Scripts

  • yarn start - enter local development mode.
  • yarn start:dev - enter remote development mode. This will build your app using webpack and serve the resulting package at a public URL.
  • yarn build:apps - create a package via webpack ready for distribution to NPM