- Clone this repository.
git clone https://github.com/OmAvhad/log-stream.git - Navigate to the project directory.
cd log-stream - Run the following command to build and start the application:
docker-compose up -d --build - Make migrations for the database.
docker-compose run --rm flask flask db upgrade
-
Topics
- auth
- database
- payment
- server
- services
-
Produce logs (Publish logs to a topic)
docker-compose run --rm flask python producer/producer.py --topic TOPIC_NAME -
View logs (Consume logs of a topic)
docker exec -it kafka kafka-console-consumer --bootstrap-server localhost:9092 --topic TOPIC_NAME --from-beginning
