Laconic Console App
Go to file
2023-03-20 02:30:25 -06:00
.github/workflows Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
docs/images Docs. 2020-05-25 22:28:12 -04:00
public First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
scripts fix: app dir 2020-11-16 16:02:41 -06:00
src First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
.gitignore Layout with sidebar. 2020-05-23 19:01:17 -04:00
.npmrc Use published packages and remove console-server (#8) 2023-01-04 16:49:44 +05:30
app.yml First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
babel.config.js First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
CHANGELOG.md Fill in some change details (but mainly kick the build). 2020-06-15 16:39:18 -05:00
config-kube.yml First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
config-local.yml First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
config-production.yml First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
config-testnet.yml First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
LICENSE Create LICENSE 2020-11-04 09:53:21 +01:00
package.json First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
package.json.toplevel First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
README.md Note warning/error in dep install (#19) 2023-01-11 13:57:07 +05:30
version.ejs First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
webpack-analyzer.config.js First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
webpack-common.config.js First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
webpack.config.js First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
yarn.lock New yarn.lock 2023-03-20 02:30:25 -06:00

Console

Laconic Kubenet GraphQL server and console application.

User interface for submitting and reading records registered on Laconic.

Console

Development

  • Clone the required repos:

    • laconicd

      git clone git@github.com:cerc-io/laconicd.git
      
  • Run the laconicd chain:

    • In laconicd repo, start the chain

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

    • In laconic-console repo, install dependencies

      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

    • Change directory to packages/console-app and start the react app

      # Change directory
      cd packages/console-app/
      
      # Start app
      CONFIG_FILE=config-local.yml yarn start
      
    • Open console-app at http://localhost:8080

    • To view records in the app, test suite in laconic-sdk can be run

      • Clone the laconic-sdk repo:

        git clone git@github.com:cerc-io/laconic-sdk.git
        
      • In laconic-sdk repo, copy .env.example file and create a .env file

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

        laconicd keys export mykey --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 laconic-sdk repo:

        yarn test
        

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

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