@ouest-france/blockprovider-runner
v1.3.0
Published
BlockProvider runner - Render a BlockProvider locally
Readme
BlockProvider-Runner - Render a BlockProvider locally
Online demo
The above link asks BlockProvider Runner to render our BlockProvider example project:
https://blockprovider-runner.cleverapps.io/block?config=https%3A//blockprovider-example.cleverapps.io/configurations&[email protected]¶meters=%3Fthreshold%3D1989
Setup locally
npm install @ouest-france/blockprovider-runner --globalUsage
Start server:
PORT=8080 blockprovider-runnerLet's consider your BlockProvider is running on http://localhost:3000 (see our
blockprovider-example) with two path :
- BlockProviderConfig is at :
http://localhost:3000/configurations - Block name to test
cms-block-provider-example-bitcoinwith configuration version1.0.0 - Accepting one parameter
?threshold=1989
To debug it, open your browser:
http://localhost:8080/block?config=http%3A//localhost%3A3000/configurations&[email protected]¶meters=%3Fthreshold%3D1989