laconic-console/packages/console-app
2020-06-23 01:41:34 +00:00
..
public Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
src v1.0.0-beta.12 2020-06-23 01:41:34 +00:00
app.yml Remove more debug lines. 2020-06-13 01:58:17 -05:00
babel.config.js Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
config.yml v1.0.0-beta.11 2020-06-16 17:40:56 +00:00
config.yml.development Restore development version. 2020-06-16 12:27:17 -05:00
config.yml.kube xbox -> kube 2020-06-22 14:20:52 -05:00
config.yml.production Add a new production config. 2020-06-11 20:29:52 +00:00
package.json v1.0.0-beta.12 2020-06-23 01:41:34 +00:00
README.md App download indicator. 2020-06-08 16:10:00 -05:00
version.ejs Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
webpack-analyzer.config.js Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
webpack-common.config.js Config issues. 2020-05-31 14:38:44 -04:00
webpack.config.js Server Console App directly from the server. 2020-05-27 19:09:20 -04: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.

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);