This guide will help you set up Eventeum on your local machine for development and testing.
Before running Eventeum, ensure you have the following installed:
- Java 21
- Maven
- Docker & Docker Compose (for containerized deployment)
-
Clone the repository and navigate to the project directory:
git clone https://github.com/IoBuilders/eventeum cd eventeum
-
Compile, test, and package the project using Maven:
mvn clean package
Eventeum provides a docker-compose setup that includes all required dependencies. There are two ways to run it:
-
Navigate to the
server
directory:cd server
-
Make the setup script executable and run it with the desired configurations:
chmod +x setup_env.sh ./setup_env.sh <broker> <database> <blockchain>
This script automatically configures and starts the required services without needing to run
docker-compose
manually.
-
Navigate to the
server
directory:cd server
-
Build Eventeum's Docker image and start it using
docker-compose
with the desired profiles:docker-compose --profile <profile-name> --profile <profile-name> up --build
Replace
<profile-name>
with the desired profile:kafka
→ Uses Kafka for messagingrabbitmq
→ Uses RabbitMQ for messagingmongodb
→ Uses Mongo for databasepostgresql
→ Uses Postgres for databaseeventeum
→ Use Eventeum as a Docker service with a pre-built image
-
To stop the services, use:
docker-compose down
If you prefer to run Eventeum manually and have an existing instance of MongoDB, Kafka, Zookeeper, and an Ethereum node, you can start it as a JAR file:
cd server
SPRING_PROFILES_ACTIVE=kafka,mongodb,ethereum java -jar target/eventeum-server.jar