Skip to content

Latest commit

 

History

History
 
 

pickup-data-adventure-game

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

PICKUP DATA - A Kafka Adventure Game

Screenshot

Server Setup

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

Running The Streams Services

cd server 
./gradlew run

Running The Webserver

cd server 
./gradlew appStart

Running The Client

cd client 
yarn
yarn dev