/kafka-htmx

A Kafka producer with htmx

Primary LanguageHTMLApache License 2.0Apache-2.0

Kafka HTMX

Kafka HTMX is a Flask application that allows you to send messages to a Kafka cluster. The application provides a simple web interface where you can specify the topic, the number of messages to send, and the Kafka cluster to send the messages to.

Setup

To set up the Kafka HTMX application, you need to have Python 3.8 or later and Poetry installed on your machine.

  1. Clone the repository:
git clone https://github.com/yourusername/kafka_htmx.git
cd kafka_htmx
  1. Install the dependencies: poetry install

  2. Create a .env file in the root directory of the project and add your configuration variables: export FLASK_APP=kafka_htmx

Running the Application

To run the Kafka HTMX application, use the flask run command: poetry run flask run This will start the application on localhost:5000.

Running the Tests

To run the tests for the Kafka HTMX application, use the pytest command: poetry run pytest