Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

joyent/conch-ui

Folders and files

NameName
Last commit message
Last commit date
Sep 30, 2020
Apr 24, 2019
Jan 12, 2021
Jul 18, 2019
Nov 5, 2018
Oct 30, 2020
Sep 20, 2019
Sep 7, 2017
Oct 30, 2020
Aug 1, 2019
Mar 15, 2019
Dec 14, 2018
Sep 20, 2019
Sep 20, 2019
Oct 30, 2020
Oct 30, 2020
Oct 30, 2020
Jan 5, 2021
Oct 30, 2020
Jun 14, 2018
Nov 10, 2020
Jan 5, 2021

Repository files navigation

Conch UI

Screenshot of Conch UI

This repository contains all source needed to build the Web UI for the Conch API service.

See the Design Document for information regarding UI design and development decisions.

Requirements

Yarn is required for building this project. Yarn will automatically install dependencies before executing build commands.

GNU make is used for make commands.

Development

To develop the Conch UI:

  1. Start a local instance of the Conch API in a separate shell using make morbo in the Conch repo. This will start Conch in development mode on port 5001.

  2. Run make start in this repo to launch a hot-reloading server and open a browser window to it.

Alternatively, run make watch in this directory to start an auto-compiling process, which will raise errors and warnings without a hot-reloading server. No running Conch instance is needed for this to work.

Build for Production

Copy src/config.js to config.js Edit config.js and assign the conchApi to the HTTP/S URI of the Conch API host the UI will issues requests against. This server must have CORS headers configured appropriately or be served at the same host as the API.

Run 'make build'. All web assets, including HTML, Javascript, CSS, images, and dependencies, will output into dist/. You can serve this directory statically using a proxy like nginx.