Laconic Console App
Go to file
Nabarun Gogoi 780cd29807
Use published packages and remove console-server (#8)
* Use published packages in lirewine

* Remove console-server package

* Use dxos packages until lirewine packages are published

* Use published cerc-io/laconic-sdk package

* Add readme to run console app with laconicd
2023-01-04 16:49:44 +05:30
.github/workflows Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
.idea Run config. 2020-05-31 21:12:02 -04:00
docs/images Docs. 2020-05-25 22:28:12 -04:00
packages/console-app Use published packages and remove console-server (#8) 2023-01-04 16:49:44 +05:30
scripts fix: app dir 2020-11-16 16:02:41 -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
CHANGELOG.md Fill in some change details (but mainly kick the build). 2020-06-15 16:39:18 -05:00
lerna.json v1.2.9 2020-12-19 03:06:49 +00:00
LICENSE Create LICENSE 2020-11-04 09:53:21 +01:00
package.json Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
README.md Use published packages and remove console-server (#8) 2023-01-04 16:49:44 +05:30
yarn.lock Use published packages and remove console-server (#8) 2023-01-04 16:49:44 +05:30

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
      
    • debug

      git clone git@github.com:lirewine/debug.git
      
    • gem

      git clone git@github.com:lirewine/gem.git
      
  • Run the laconicd chain:

    • In laconicd repo, checkout to a different branch (see issues below)

      git checkout console
      
    • Start the chain

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

    • In laconic-console repo, install dependencies

      yarn
      
    • Register the dependencies to link

      • lirewine/debug

        • In debug repo, checkout to release version

          git checkout v1.0.0-beta.78
          
        • Install and build packages

          # Install dependencies and build packages
          yarn && yarn build
          
        • Run yarn link in repo root

          yarn link
          
      • lirewine/gem-core

        • In gem repo, checkout to release version

          git checkout v1.0.0-beta.26
          
        • Install and build packages

          # Install dependencies and build packages
          yarn && yarn build
          
        • Change directory to core package and run yarn link

          cd packages/core
          
          # Register package to link
          yarn link
          
    • Link the packages in laconic-console

      • In root of repo, run

        yarn link "@lirewine/debug"
        yarn link "@lirewine/gem-core"
        
    • 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.

      • Also change value of COSMOS_CHAIN_ID in .env file

        COSMOS_CHAIN_ID=ethermint_9000-1
        
      • 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.

Issues