laconic-console/packages/console-app
2020-07-22 19:31:11 -05:00
..
public Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
src Link update instructions to statusbar. (#41) 2020-07-22 19:31:11 -05:00
app.yml DXOS Console -> Kubenet Console. Fix console-app to honor CONFIG_FILE. 2020-07-20 15:20:36 -05:00
babel.config.js DxOS -> DXOS 2020-06-23 09:19:01 -05:00
config-kube.yml New logo. 2020-07-20 15:33:06 -05:00
config-local.yml New logo. 2020-07-20 15:33:06 -05:00
config-production.yml DXOS Console -> Kubenet Console. Fix console-app to honor CONFIG_FILE. 2020-07-20 15:20:36 -05:00
config-testnet.yml DXOS Console -> Kubenet Console. Fix console-app to honor CONFIG_FILE. 2020-07-20 15:20:36 -05:00
package.json v1.0.0-beta.23 2020-07-21 22:03:02 +00:00
README.md Updat README. 2020-07-20 12:42:15 -05:00
version.ejs Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
webpack-analyzer.config.js DxOS -> DXOS 2020-06-23 09:19:01 -05:00
webpack-common.config.js DXOS Console -> Kubenet Console. Fix console-app to honor CONFIG_FILE. 2020-07-20 15:20:36 -05:00
webpack.config.js DXOS Console -> Kubenet Console. Fix console-app to honor CONFIG_FILE. 2020-07-20 15:20:36 -05:00

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 QUERY_STATUS from '@dxos/console-client/gql/system_status.graphql';
import config from '@dxos/console-client/config.json';

...

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