laconic-console/packages/console-client/README.md

40 lines
627 B
Markdown
Raw Normal View History

2020-05-23 18:36:15 +00:00
# Console
Apollo GraphQL client.
## Usage
```bash
yarn
yarn start
```
http://localhost:8080
## Deploy
```bash
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.
```javascript
import QUERY_STATUS from '@dxos/console-client/gql/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);
```