@cerc-io/console-app (0.2.5)

Published 2024-10-30 12:34:30 +00:00 by cerccicd in cerc-io/laconic-console

Installation

@cerc-io:registry=
npm install @cerc-io/console-app@0.2.5
"@cerc-io/console-app": "0.2.5"

About this package

Console

Laconic console application.

User interface for submitting and reading records registered on Laconic.

Development

  • Clone the required repos:

    • laconicd

      git clone git@git.vdb.to:cerc-io/laconicd.git
      
  • Run the laconicd chain:

    • In laconicd repo, start the chain

      ./scripts/init.sh clean
      
  • Run the laconic-console app

    • From the root of this repo, run:

      yarn
      

      NOTE: There is a warning containing error while installing dependencies

      warning Error running install script for optional dependency: ".../laconic-console/node_modules/sodium-native: Command failed.
      Exit code: 1
      ...
      Error: ./configure exited with 127
      

      This can be ignored as it is an error for installing optional dependency

    • Start the app:

      CONFIG_FILE=config-local.yml yarn start
      
    • Open console at http://localhost:8080

    • To view records in the console, the test suite in registry-sdk can be run

      • Clone the registry-sdk repo:

        git clone git@git.vdb.to:cerc-io/registry-sdk.git
        
      • In registry-sdk repo, copy .env.example file and create a .env file

        cp .env.example .env
        
      • Export the private key using:

        laconicd keys export alice --keyring-backend test  --unarmored-hex --unsafe
        
      • Copy the private key exported above and assign it to variable PRIVATE_KEY in the .env file.

      • Install dependencies

        yarn
        
      • Run the tests in registry-sdk repo:

        yarn test
        

        NOTE: One test from util.test.ts fails as mentioned in the PR

      • Open console at http://localhost:8080 to view the records.

Dependencies

Dependencies

ID Version
@apollo/client ^3.7.10
@apollo/react-components ^4.0.0
@apollo/react-hooks ^4.0.0
@babel/runtime ^7.21.0
@cerc-io/registry-sdk ^0.2.8
@lirewine/debug 1.0.0-beta.78
@lirewine/gem-core 1.0.0-beta.28
@lirewine/react-ux 1.1.0-beta.1
@material-ui/core ^4.12.4
@material-ui/icons ^4.11.3
@material-ui/lab ^4.0.0-alpha.61
@rehooks/component-size ^1.0.3
@visx/network ^1.0.0
@visx/tooltip ^1.0.0
@visx/zoom ^1.0.0
build-url ^2.0.0
clsx ^1.1.0
compare-versions ^3.6.0
d3-force ^2.1.1
debug ^4.1.1
graphql-tag ^2.10.3
lodash.defaultsdeep ^4.6.1
lodash.get ^4.4.2
moment ^2.26.0
node-polyfill-webpack-plugin ^2.0.1
react ^16.12.0
react-dom ^16.12.0
react-router ^5.3.4
react-router-dom ^5.3.4
source-map-support ^0.5.12

Development Dependencies

ID Version
@babel/cli 7.21.0
@babel/core ^7.21.0
@babel/preset-env ^7.20.2
@babel/preset-react ^7.18.6
@webpack-cli/info ^2.0.1
babel-jest ^29.5.0
babel-loader ^9.1.2
babel-plugin-import-graphql ^2.7.0
babel-plugin-inline-import ^3.0.0
babel-plugin-inline-json-import ^0.3.2
dotenv-webpack ^8.0.1
graphql ^15.0.0
html-webpack-plugin ^5.5.0
jest ^29.5.0
webpack ^5.76.2
webpack-bundle-analyzer ^4.8.0
webpack-cli ^5.0.1
webpack-dev-server ^4.13.1
webpack-merge ^5.8.0
webpack-version-file-plugin ^0.5.0
yaml-loader ^0.8.0

Peer Dependencies

ID Version
react 16.12.0
react-dom ^16.12.0
Details
npm
2024-10-30 12:34:30 +00:00
3
GPL-3.0
latest
7.8 MiB
Assets (1)
Versions (13) View all
0.2.5 2024-10-30
0.2.4 2024-08-21
0.2.3 2024-08-14
0.2.2 2024-08-09
0.2.1 2024-07-25