Code
The code for the backend can be found on GitHub.
Prerequisites
Install:
- Java
- Maven
- Here we describe the setup in IntelliJ, but you can use an IDE of your choice
Development Environment
In this setup we will start the backend, connect, and the processors in your IDE. The UI and all the other services run in docker.
Set-Up StreamPipes Services
Clone Installer [Link]
Prepare Installer# SSH git clone git@github.com:apache/incubator-streampipes.git # HTTPS git clone https://github.com/apache/incubator-streampipes.git # switch to development branch git checkout dev
Open CLI directory
Prepare Installercd installer cd cli
Configure StreamPipes for backend development
Prepare Installer./streampipes env --set backend # Updates the file 'system'. All StreamPipes services required for development are selected
Start third party services (e.g. CouchDB, Kafka, ... in docker)
Prepare Installer./streampipes up -d
Set-Up repository
Open the project in your IDE
Set-Up Backend
We provide an environment file for each service in the folder development. This contains the environment variables that must be set to run the service.
- Add a new application with the following Run/Debug Configurations
- Main class: org.apache.streampipes.backend.StreamPipesBackendApplication
- Use classpath of module: streampipes-backend
- Environment variables: streampipes-backend/development/env
- Apply, OK & Start the application
- Navigate to "http://localhost:8030/streampipes-backend/" to see if the backend is running. You should see the following message: