laconic-console/packages/console-client
2020-05-26 08:58:38 -04:00
..
gql Version check and sorting. 2020-05-25 22:16:25 -04:00
public Initial commit for Apollo client/server with express. 2020-05-23 13:13:45 -04:00
src Merge branch 'master' into burdon/express 2020-05-26 08:58:38 -04:00
babel.config.js App/Bots/Records. 2020-05-25 18:32:45 -04:00
config.yml App/Bots/Records. 2020-05-25 18:32:45 -04:00
package.json Get WNS logs using API. 2020-05-26 15:34:36 +05:30
README.md Version check and sorting. 2020-05-25 22:16:25 -04:00
version.ejs Initial commit for Apollo client/server with express. 2020-05-23 13:13:45 -04:00
version.json Sorting. 2020-05-26 08:58:11 -04:00
webpack-analyzer.config.js Initial commit for Apollo client/server with express. 2020-05-23 13:13:45 -04:00
webpack-common.config.js Local resolver. 2020-05-23 22:37:52 -04:00
webpack.config.js Layout with sidebar. 2020-05-23 19:01:17 -04:00

Console

Apollo GraphQL client.

Usage

First start the server:

  cd packages/consoe-server
  yarn start

Then start the Webpack devserver.

  cd packages/consoe-client
  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);