The TicketHub sample application to show off using the Styra OPA SDKs:
To run the Tickethub app you need to select which server and client implementations to use when running docker compose up
docker compose --profile <SERVER_IMPLEMENTATION> --profile <CLIENT_IMPLEMENTATION> up
The list of <SERVER_IMPLEMENTATION>
is:
node
csharp
java
springboot
The list of <CLIENT_IMPLEMENTATION>
is:
html
react
So for example, running the node
server with react
would result in:
docker compose --profile node --profile react up
Then open the browser at http://localhost:3000
Warning
Using docker compose requires networking_mode: host
.
This is disabled by default on MacOS and Windows for Docker Desktop.
See the Docker Desktop documentation for information on how to enable this mode.