Ensure the following tools and libraries are installed on your system:
- Docker Desktop: For containerized services.
- C++ Compiler: Compatible with C++17 or higher (e.g., GCC, Clang).
- CMake: For building the project.
- librdkafka: Kafka client library for C/C++.
Redpanda is a Kafka-compatible streaming platform designed for high performance and simplicity.
- Open a terminal and navigate to the Redpanda directory:
cd /redpanda - Start the Redpanda server using Docker Compose:
docker compose up
- Once launched, access the Redpanda UI at http://localhost:8080/.
- In the "Topics" section, create a new topic named
ordersfor later use.
Before building the project, ensure the CMakeLists.txt file is configured with the correct paths:
# Specify the include directory for headers
include_directories(src/include)
# Specify the include directory for librdkafka
include_directories(/opt/homebrew/include)
# Specify the library directory for librdkafka
link_directories(/opt/homebrew/lib)- Create and navigate to the build directory:
mkdir build cd build - Generate the build files with CMake:
cmake ..
- Compile the project:
cmake --build . - Run the compiled executable:
./euronext-router
- Ensure Docker is running before launching Redpanda.
- Verify
librdkafkais correctly installed and linked during the build process. - Use
docker psto confirm that the Redpanda containers are running.
For additional support, refer to libraries documentation or community forums.