@arcblock/blocklet-registry
Version:
**Blocklets** are reusable building blocks to help developers and community users to build things on [ArcBlock](https://www.arcblock.io) platform. A blocklet serves one and only one purpose, reusability is the core design philosophy of blocklets. Reusabil
1 lines • 10.5 kB
JSON
{"componentChunkName":"component---src-templates-blocklet-detail-js","path":"/dapp/ocap-qldb-adapter","result":{"pageContext":{"language":"en","originalPath":"/dapp/ocap-qldb-adapter","locale":"en","blocklet":{"name":"ocap-qldb-adapter","version":"0.6.6","description":"Simple app that serve an OCAP adapter which uses AWS QLDB as backend","keywords":["qldb","adapter"],"author":{"name":"wangshijun","email":"wangshijun2010@gmail.com","url":"http://github.com/wangshijun"},"title":"QLDB Manager","license":"Apache-2.0","files":["lib/hooks/pre-start.js","blocklet.md","README.md"],"repository":{"type":"git","url":"git+https://github.com/blocklet/ocap-qldb-example.git"},"group":"dapp","main":"blocklet.js","community":"","documentation":"","homepage":"","screenshots":[],"support":"support@arcblock.io","environments":[{"name":"AWS_ACCESS_KEY_ID","description":"AWS Access Key ID","required":true,"default":"","secure":true},{"name":"AWS_SECRET_ACCESS_KEY","description":"AWS Access Secret","required":true,"default":"","secure":true},{"name":"AWS_LEDGER","description":"QLDB ledger name","required":false,"default":"ocap-qldb-demo","secure":false},{"name":"AWS_REGION","description":"Which region the ledger is created","required":false,"default":"us-west-2","secure":false}],"scripts":{"preStart":"node lib/hooks/pre-start.js","dev":"npm run start"},"specVersion":"1.0.1","did":"z8iZpWP3gto8RWk9UHfvAaYtqX5wZ3Mz9BrHA","interfaces":[{"name":"publicUrl","type":"web","path":"/","prefix":"*","protocol":"http","port":"BLOCKLET_PORT"}],"timeout":{"start":10},"charging":{"price":0},"gitHash":"bb45d98606e2b821562a884602eece0d49bf10e7","htmlAst":{"type":"root","children":[{"type":"element","tagName":"h1","properties":{"id":"ocap-qldb-example","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#ocap-qldb-example","ariaLabel":"ocap qldb example permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"OCAP QLDB Example"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This is an example project that shows how to start a OCAP Adapter that's baked by Amazon QLDB."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Checkout "},{"type":"element","tagName":"a","properties":{"href":"./index.js"},"children":[{"type":"text","value":"./index.js"}]},{"type":"text","value":" for example code."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To get the example up and running, please following following steps."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"1-get-your-aws-access-keysecret","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#1-get-your-aws-access-keysecret","ariaLabel":"1 get your aws access keysecret permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"1. Get Your AWS Access Key/Secret"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://docs.aws.amazon.com/qldb/latest/developerguide/getting-started.nodejs.html"},"children":[{"type":"text","value":"https://docs.aws.amazon.com/qldb/latest/developerguide/getting-started.nodejs.html"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Your should get your AWS access key and secret when this step is done."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Make sure your account has access to qldb ledgers."}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"2-create-your-ledge-on-qldb-console","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#2-create-your-ledge-on-qldb-console","ariaLabel":"2 create your ledge on qldb console permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"2. Create your Ledge on QLDB Console"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This step is not required, since the demo will help to create when run in blocklet mode."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You should get the ledger name and ledger region when this step is done."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"3-setup-config-file","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#3-setup-config-file","ariaLabel":"3 setup config file permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"3. Setup Config file"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Create a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file at this example project root:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-ini"],"4.":"","How":"","to":"","play":"","with":"","the":"","demo?":""},"children":[{"type":"text","value":"AWS_ACCESS_KEY_ID='CHANGE_THIS_TO_YOUR_ACCESS_KEY'\nAWS_SECRET_ACCESS_KEY='CHANGE_THIS_TO_YOUR_ACCESS_SECRET'\nAWS_LEDGER='ocap-qldb-demo'\nAWS_REGION='ap-northeast-1'\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"4-how-to-play-with-the-demo","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#4-how-to-play-with-the-demo","ariaLabel":"4 how to play with the demo permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"4. How to play with the demo?"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Provide the endpoint to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"@arcblock/block-explorer"}]},{"type":"text","value":" blocklet to explore the txs/accounts"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Provide the endpoint to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"blockchain-boarding-gate"}]},{"type":"text","value":" blocklet to explore the txs/accounts"}]},{"type":"text","value":"\n"}]}],"data":{"quirksMode":false}},"path":"/dapp/ocap-qldb-adapter","stats":{"downloads":2608,"updated_at":"2021-04-08T02:59:31.876Z"},"dist":{"integrity":"sha512-B0rIR8LfNrZcG/mJ+p5x8z1z1fj7W8CY8jx/5v9i2KLnXF/6NUAyxOrFUkcS8c6A7JU0BLbRXCGIw4AsnlChFw==","shasum":"30757f3327dc27d17288107244063c862e518d4a","tarball":"https://registry.npmjs.org/ocap-qldb-adapter/-/ocap-qldb-adapter-0.6.6.tgz","fileCount":6,"unpackedSize":15400892}}}},"staticQueryHashes":["1812186216"]}