laconic-console/packages/console-app
2023-03-19 20:19:28 -06:00
..
public Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
src Use published debug and gem-core packages (#17) 2023-01-11 13:08:12 +05:30
app.yml fix: add repo link 2020-11-16 14:11:34 -06:00
babel.config.js DxOS -> DXOS 2020-06-23 09:19:01 -05:00
config-kube.yml Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
config-local.yml Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
config-production.yml Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
config-testnet.yml Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
package.json Fix webpack migration issues 2023-03-19 20:19:28 -06:00
README.md Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
version.ejs Work around error to do with new Node.js or new webpack 2023-03-19 19:24:55 -06:00
webpack-analyzer.config.js Update config to suit current webpack 2023-03-19 19:11:48 -06:00
webpack-common.config.js Fix webpack migration issues 2023-03-19 20:19:28 -06:00
webpack.config.js Update config to suit current webpack 2023-03-19 19:11:48 -06: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 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);