First start the server processes running:
docker-compose up
Then in another terminal create the initial streams and datasets:
docker-compose run --entrypoint "/ksql/migrate" ksqldb-cli
This should end with output similar to:
Stream Name | Kafka Topic | Key Format | Value Format | Windowed
--------------------------------------------------------------------------------------------
COMMANDS | commands | KAFKA | AVRO | false
INVENTORY | inventory | KAFKA | AVRO | false
INVENTORY_COMMANDS | inventory_commands | KAFKA | AVRO | false
ITEM_RULES | item_rules | KAFKA | AVRO | false
KSQL_PROCESSING_LOG | default_ksql_processing_log | KAFKA | JSON | false
LOCATION_DATA | location_data | JSON | AVRO | false
MIGRATION_EVENTS | default_ksql_MIGRATION_EVENTS | KAFKA | JSON | false
MOVEMENT_COMMANDS | movement_commands | KAFKA | AVRO | false
RESPONSES | responses | KAFKA | AVRO | false
STATUS_COMMANDS | status_commands | KAFKA | AVRO | false
Note: To recreate the database from scratch, use this docker-compose
command instead
docker compose up --renew-anon-volumes --force-recreate
cd server
./gradlew run
cd server
./gradlew appStart
cd client
yarn
yarn dev