Frontend for Elevator App, a multi-asset digital repository.
This project contains the updated Vue 3 UI for Elevator.
To get started with local development, you'll need a few prerequisites:
- NodeJS LTS
- Elevator App (backend) like https://dev.elevator.umn.edu
- ArcGIS API Key for map functionality
-
Clone the repository
$ git clone https://github.com/UMN-LATIS/elevator-ui $ cd elevator-ui
-
Copy
.env.example
to.env
and update the values as needed:BASE_ORIGIN
- the URL of the Elevator App backend. For local development the backend will be proxied, so use/api
.VITE_API_PROXY_TARGET
- the URL of the Elevator App backend used for local development (e.g.https://dev.elevator.umn.edu
).BASE_PATH
- the path to the instance of Elevator on the origin (e.g./dcl
or/defaultinstance
).ARCGIS_API_KEY
- the ArcGIS API Key for the map functionality.
-
Install dependencies
$ yarn install
-
Start the development server
$ yarn dev
-
Open http://localhost:5173 in your browser
Elevator uses Storybook for component development. To see the component library, run:
$ yarn storybook
This UI uses StorybookJS for component development, to see the stories run:
$ yarn storybook
This UI is deployed to the Elevator App backend as a static site.
To build the static site:
# SSH into the Elevator App backend
$ ssh <username>@<hostname>
# Navigate to the Elevator UI directory
$ cd /opt/elevator/assets
# Clone the repository (if not already cloned)
$ git clone https://github.com/UMN-LATIS/elevator-ui
# Navigate to the Elevator UI directory
$ cd elevator-ui
# build any dependencies
$ yarn install
# build the static site
# this will build the site in the `dist` directory, and set the base path to `/assets/elevator-ui/dist`
$ yarn build:remotedev
In production, there's no need to configure a .env
file. The UI will get the configuration variables from window.Elevator.config
, which the VueTemplate.php
will populate. See src/config.ts
.
Email: elevator@umn.edu