laconic-console/packages/console-app
richburdon eb6bcd9c95 Server Console App directly from the server.
Use Moustache to create template and set config in page.
Use babel plugins to process GQL (and fix GQL queries).
Added service type.
2020-05-27 19:09:20 -04:00
..
public Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
src Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
babel.config.js Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
config.yml Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
package.json Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
README.md Server Console App directly from the server. 2020-05-27 19:09:20 -04: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 Server Console App directly from the server. 2020-05-27 19:09:20 -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/consoe-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);