forked from cerc-io/laconic-console
590eadf974
* Resolve missing dependency issues * Use laconic-sdk for GQL queries and record names workaround |
||
---|---|---|
.. | ||
public | ||
src | ||
app.yml | ||
babel.config.js | ||
config-kube.yml | ||
config-local.yml | ||
config-production.yml | ||
config-testnet.yml | ||
package.json | ||
README.md | ||
version.ejs | ||
webpack-analyzer.config.js | ||
webpack-common.config.js | ||
webpack.config.js |
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 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);