laconic-console/packages/console-app/README.md
nikugogoi 8761a54a50
Refactor code to remove dxos and rename to laconic (#5)
* Rename dxos to laconic

* Use react-ux

* Change package scopes from dxos to cerc-io

* Comment github CI publishing package

* Rename dxos to laconic in config files

* Rename Laconic.org to Laconic
2022-12-05 14:16:14 +05:30

1.0 KiB

Console

Apollo GraphQL client.

Usage

First start the server:

  cd packages/console-server
  yarn start

Then start the Webpack devserver.

  cd packages/console-app
  yarn start

Then load the app: http://localhost:8080.

Using a KUBE

To use your KUBE for testing, rather than running all the services locally, specify a different config file when starting: config-kube.yml, which connects to kube.local for all services.

For example:

  cd packages/console-app
  CONFIG_FILE=config-kube.yml yarn start

Deploy

  yarn build

This creates the following folders:

/dist
  /es               # Module imports.
  /production       # Production build.

NOTE: GQL and Production files and exported and may be used by the server.

import SYSTEM_STATUS from '@cerc-io/console-app/src/gql/system_status.graphql';

...

const file = path.join(__dirname + '../../../../node_modules/@cerc-io/console-app/dist/production', 'index.html');
res.sendFile(file);