cf login -a <url> -u <student>
- at the prompt enter your student password
cf create-user-provided-service cp -p cups.json
(this will inject the Kakfa credentials at runtime)
./mvnw clean package -DskipTests
(the tests will hang unless you are running kafka locally)
cf push
(just remember to be in the project root folder with the manifest.yml)
-
cf logs stream
(in another terminal) -
curl -X POST -d 'name=vik&age=33' https://<route>/user/publish
(the will be the generated PCF route for pubsubcf app pubsub | grep routes
)
Change the name and age in the payload and see if the stream filters it or not...