Skip to content

Latest commit

 

History

History

opa-react-demo

@styra/opa-react Demos

This React application showcases the request batching feature of @styra/opa-react when used with the Enterprise OPA Batch API.

How to use

Docker

  1. Set $EOPA_LICENSE_KEY
  2. Run docker compose up
  3. Go to http://127.0.0.1:4000

Binaries

  1. Download Enterprise OPA
  2. Set $EOPA_LICENSE_KEY or sign up for a trial by running eopa license trial
  3. Start Enterprise OPA with the policies loaded: eopa run --log-level debug --server policies/
  4. Start the app: npm install && npm run start
  5. Go to http://127.0.0.1:3000

Note on using OPA

You can use the demo app with the open source Open Policy Agent, however batching mode will not work.