Skip to content

Ouest-France/blockprovider-runner

Repository files navigation

⚠️ Deprecated for now

Use infrastructure-blockprovider-runner instead. We will open-source another version for our partners in the following months ⚠️

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://blockprovider-example.cleverapps.io/configurations&[email protected]&parameters=?threshold=1989

Setup locally

npm install @ouest-france/blockprovider-runner --global

Usage

Start server:

PORT=8080 blockprovider-runner

Let"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-bitcoin with configuration version 1.0.0
  • Accepting one parameter ?threshold=1989

To debug it, open your browser:

http://localhost:8080/block?config=http://localhost:3000/configurations&[email protected]&parameters=?threshold=1989