Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

A graphical web interface for exploring, retrieving, and visualizing datasets

License

Notifications You must be signed in to change notification settings

UrbanOS-Examples/discovery_ui

Repository files navigation

Master

discovery

Front-end application for interacting with datasets within the platform. This is the Smart Columbus OS implementation of the react_discovery_ui component.

Install Dependencies

npm install

Run Unit Tests

npm run test

Run Unit Tests in Watch Mode

npm run test-watch

Unit tests will output warnings relate to accessibility. Configurations are found in test-start-point.js

Lint the Code

npm run lint

Configuration

Runtime configurations are stored in config/config.js.

API_HOST

This application is designed to be used with discovery-api as the backend. Set this value to the URL of the local discovery-api endpoint.

GTM_ID

Set this value to the Google Tag Manager ID to enable analytics.

BASE_URL

The domain that the site will be hosted on

Start the UI Locally

npm run start

You can view the UI in your web browser at http://localhost:9001

Build Docker Image

docker build . -t <image name>:<tag>

Running the Docker Image

docker run -d --rm -p <port>:80 <image name>:<tag>