graph LR
A[Producer] --message --> B((Kafka Broker))
Watcher --File or folder changes --> A(Producer)
B --message--> D(Consumer)
D --> E(Save file in destination)
Before start sync, change .env.example to .env and add your settings
FOLDER_PRODUCER_SOURCE=./source/ // change here to your target source
FOLDER_CONSUMER_DESTINATION=./dest/ // change here to your target destination
KAFKA_HOST=localhost:9092 // If you already have Kafka Broker change here Kafka Broker used in Docker container to run execute:
docker-compose up -dInto your host source target run:
npm install
npm run producerInto your host destination target run:
npm install
npm run consumer