This repository is a monorepo for projects written in TypeScript supporting libs and apps of GPP. It contains the following projects:
- navigate-ui: Web UI used to configure the telescope and its subsystems Navigate UI, written in React.
- navigate-configs< 6D19 /a>: Backend api to manage configurations database using TypeScript, Graphql and Prisma.
- resource-ui: Web UI for Resource, written in React.
- admin-ui: Web UI for the GPP Admin views (Programs, Users, Proposals, Change Requests, Calls for Proposals), written in React.
- common-ui: Shared code between
navigate-uiandresource-ui - e2e: end-to-end tests for navigate. Running
navigate-ui,navigate-configsand a navigate-server docker image
The scripts that install and run a Navigate cluster on the staging and production servers (install.sh, the navigate command, docker-compose.yml) live in lucuma-deploy, together with the promotion and rollback scripts. See the README there to install or update a server.
Open the VS Code workspace in the root of the repository. You can use the command line or the GUI.
$ code workspace.code-workspaceTo install needed dependencies you can use PNPM. You can enable it with corepack by running the following command:
$ npm install -g corepack && corepack enableWe are now using FontAwesome Pro which requires a license. To build the app locally request a TOKEN from the admins and you need to setup the registry access like:
$ pnpm config set "//npm.fontawesome.com/:_authToken" "$FONTAWESOME_NPM_AUTH_TOKEN"$ pnpm install
$ pnpm ui dev
$ pnpm configs build
$ pnpm configs devThe project is automatically published by Github actions when a new tag is pushed. Two docker images are published:
noirlab/gpp-nav-configs: the docker image for navigate-configs.noirlab/gpp-nav: an extra layer on top ofnoirlab/gpp-nav-server, which adds the UI static files to/navigate-ui, so the backend can serve these files.