Laconic Console App
Go to file
Prathamesh Musale 139fb37bef Implement pagination for registry records table (#60)
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8)
Handles cerc-io/laconic-console#59
Requires cerc-io/registry-sdk#27

![image](/attachments/095cf131-19ef-4acc-9ffe-bcbe2f9dad77)
![image](/attachments/684722d3-b9df-44ae-8622-5bacd2dc2a3f)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: #60
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-09-06 05:23:17 +00:00
.gitea/workflows Add CI webapp deployment (#57) 2024-08-14 23:48:59 +00:00
.github/workflows Refactor code to remove dxos and rename to laconic (#5) 2022-12-05 14:16:14 +05:30
public add favicon, hard code site title 2024-08-09 10:16:13 -04:00
scripts Bump (#58) 2024-08-21 19:29:40 +00:00
src Implement pagination for registry records table (#60) 2024-09-06 05:23:17 +00:00
.gitignore Layout with sidebar. 2020-05-23 19:01:17 -04:00
app.yml First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
babel.config.js Remove unnecessary plugin 2023-03-21 09:17:30 -06:00
build-webapp.sh Add CI webapp deployment (#57) 2024-08-14 23:48:59 +00:00
CHANGELOG.md Fill in some change details (but mainly kick the build). 2020-06-15 16:39:18 -05:00
config-hosted.yml Use lowercase 2023-03-31 14:55:09 -06:00
config-kube.yml First cut at de-lernaizing 2023-03-20 02:23:46 -06:00
config-local.yml add favicon, hard code site title 2024-08-09 10:16:13 -04: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 Implement pagination for registry records table (#60) 2024-09-06 05:23:17 +00:00
README.md Rename laconic2d to laconicd repo in readme (#53) 2024-07-23 04:54:40 +00:00
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 Fix webpack config for non-workspace repo 2023-03-21 09:41:03 -06:00
webpack.config.js add favicon, hard code site title 2024-08-09 10:16:13 -04:00
yarn.lock Implement pagination for registry records table (#60) 2024-09-06 05:23:17 +00:00

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.