barkhayot / food-microservice

Microservice (Built with Django + Kafka)
2 stars 0 forks source link

Kafka error #1

Closed nikhilkotiya closed 1 year ago

nikhilkotiya commented 1 year ago

I tried to run your project but I can't. I am too confused which app to run first because there is 3 app and different kafka service. Can you please explain this properly. Step by step. I also read your [README.md] So as the first step to run is python3 manage.py run_script but this giving me error no kafka broker available. I'm using windows please help me out.

barkhayot commented 1 year ago

well there are 3 django apps that i have implemented separately. bellow i will explain u how to run current project:

  1. Go Order folder and run Docker-Comose.yml on your terminal (it will create main container to run kafka)
  2. Inside Order folder run python3 manage.py runserver (it will run order microservice only.. it means that kafka will be producer here)
  3. After u need to run Kitchen Mircroservice and consumer kafka script for getting Order from Client(Go to kitchen/orders/management/commands/run_script.py) and run this script separately on your terminal
  4. After run python3 manage.py runserver (Kitchen microservice)in different terminal
  5. Now u can go to Delivery/deliver/management/commands/run_script.py for getting data as a consumer
  6. And after u can run python3 manage.py runserver (Deliver microservice) in different terminal

please make sure that u are running all your terminals at the same time . if u are still having trouble feel free to send me email (barkhayotoff@gmail.com)