21 lines
417 B
Python
21 lines
417 B
Python
from app import create_app
|
|
from app.integrations import KafkaIntegration
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
kafka = KafkaIntegration()
|
|
|
|
if kafka.is_kafka_running():
|
|
print("Kafka is running")
|
|
else:
|
|
print("Kafka is not running")
|
|
exit(1)
|
|
|
|
try:
|
|
message = kafka.receive_messages(
|
|
topic=
|
|
)
|
|
|
|
app.run(host="0.0.0.0", port=5000, debug=True)
|