Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Run Examples

Docker Compose Quick Start

To run all services (slim server, mock app server, and mock app client) using Docker Compose:

cd data-plane/examples
# Build and start all services
DOCKER_BUILDKIT=1 docker compose up --build

This will:

  • Build all images (slim-server, mock-app-server, mock-app-client)
  • Start the slim server
  • Start the mock app server
  • Start the mock app client (which will send a message)

To stop and remove all containers:

docker compose down

Manual (Local) Run

gRPC transport

You can also run each service locally using Taskfile:

  1. In the first terminal, run the slim service:
    task run:slim
  2. In the second terminal, run the mock-app server:
    task run:mock-app:server
  3. In the third terminal, run the mock-app client:
    task run:mock-app:client

WebSocket transport (ws://)

  1. In the first terminal, run the slim service:
    task run:slim:websocket
  2. In the second terminal, run the mock-app server:
    task run:mock-app:server-websocket
  3. In the third terminal, run the mock-app client:
    task run:mock-app:client-websocket

Secure WebSocket transport (wss://)

  1. In the first terminal, run the slim service:
    task run:slim:websocket:wss
  2. In the second terminal, run the mock-app server:
    task run:mock-app:server-websocket-wss
  3. In the third terminal, run the mock-app client:
    task run:mock-app:client-websocket-wss