laconic-console/packages/console-server
2020-06-22 14:20:52 -05:00
..
bin Server Console App directly from the server. 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 xbox -> kube 2020-06-22 14:20:52 -05:00
babel.config.js Server Console App directly from the server. 2020-05-27 19:09:20 -04:00
config.yml Add a new production config. 2020-06-11 20:29:52 +00:00
config.yml.kube xbox -> kube 2020-06-22 14:20:52 -05:00
package.json v1.0.0-beta.11 2020-06-16 17:40:56 +00:00
README.md 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

Use the following command to run the server at: http://localhost:4000

  yarn start  

To test the Console app, the @dxos/console-app must be built first:

  cd ../console-app
  yarn build

Use the following command to run the client in development mode (via the webpack-dev-server) at http://localhost:8080

  yarn dev

To build the client and serve it directly from the server:

  yarn build
  yarn start

Then open the app at: http://localhost:4000/console

Production

When running the Console server, either set the CONFIG_FILE environment variable or set the --config option.

  ./bin/console.js --config ./config.yml

NOTE: The server passes its configuration directly to the Console app when it is loaded.