Skip to content
Like Trello but not
Java HTML Dockerfile
Branch: master
Clone or download
phillip-kruger Added apiee
Signed-off-by:Phillip Kruger <phillip.kruger@gmail.com>
Latest commit 239c05c Sep 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jello-audit Now working on OpenLiberty Sep 19, 2019
jello-cards Added apiee Sep 26, 2019
.gitignore Added Dockerfile Sep 17, 2019
Dockerfile Added Openshift Sep 17, 2019
Jello-soapui-project.xml Added @RolesAllowed Aug 30, 2019
LICENSE Initial commit Jul 31, 2019
README.md README Update Sep 23, 2019
high_level.png Update README Aug 30, 2019
openliberty_logo.png Added OpenLiberty Aug 24, 2019
payara_logo.png
platform-spec-8.pdf JavaDoc Update Sep 13, 2019
pom.xml Added Openshift Sep 17, 2019
screen_audit.png
screen_board.png Update README Aug 30, 2019
screen_login.png Change all path in JAX-RS Aug 27, 2019
screen_openshift.png Added Openshift Sep 17, 2019
wildfly_logo.png Added OpenLiberty Aug 24, 2019

README.md

Jello

(Like Trello, but not)

This is an example application to demonstrate some of the APIs available under the Jakarta EE Umbrella.

High Level Overview

Build

To build and test the applications:

mvn clean install

Run

To run the applications:

Card System

This is the main system that host the Jello board. You can start the application using maven running under Wildfly, Payara or OpenLiberty:

Wildfly:

cd jello-cards/
mvn clean install -Pwildfly

OpenLiberty:

cd jello-cards/
mvn clean install -Popenliberty

Payara:

cd jello-cards/
mvn clean install -Ppayara

This will download (first time only), install and start a Wildfly application server and deploy the app.

You can see the Web GUI here: http://localhost:8080/cards

(Log in with any email, as long as the password is also that email)

Log in screen

Board

Audit System

The audit system receive change notifications from the Queue and then store it in cache. It also has a Websocket GUI to display the audit messages in real-time on the Screen. You can start the application using maven running under Wildfly, Payara or OpenLiberty:

Wildfly:

cd jello-audit/
mvn clean install -Pwildfly

OpenLiberty:

cd jello-audit/
mvn clean install -Popenliberty

Payara:

cd jello-audit/
mvn clean install -Ppayara

You can see the Web GUI here: http://localhost:8080/audit/app

(Click on connect to start receiving messages)

OpenShift

Deploy the docker image to Openshift, add ENV JAVA_OPTS:-Djboss.bind.address=0.0.0.0

quay.io/phillip_kruger/jello

Demo

Once both systems is running, create new cards using the GUI in the card system, and see the log entries in the audit system.

TODO: Add some scenarios

REST Examples

(You can get the key from the Dashboard)

export JELLOKEY=<insert_key_here>

Get all cards: curl -H "Content-Type: application/json" -i -H "jello.api.key:$JELLOKEY" http://localhost:8080/cards/api/card

Create a card: curl -d '{"title": "Jax-rs","description": "Created from REST"}' -X POST -H "Content-Type: application/json" -i -H "jello.api.key:$JELLOKEY" http://localhost:8080/cards/api/card

Update a card: curl -d '{"id": 1,"title": "Jax-rs","description": "Created from REST but updated","comments": [],"created": "2019-08-26T14:01","createdBy": "phillip.kruger@gmail.com","swimlane": "development"}' -X PUT -H "Content-Type: application/json" -i -H "jello.api.key:$JELLOKEY" http://localhost:8080/cards/api/card

Get a card: curl -H "Content-Type: application/json" -i -H "jello.api.key:$JELLOKEY" http://localhost:8080/cards/api/card/1

Delete a card: curl -X DELETE -H "Content-Type: application/json" -i -H "jello.api.key:$JELLOKEY" http://localhost:8080/cards/api/card/1

Presentations

If anyone is looking for a talk to give at your local meetups or conferences you are welcome to use all or parts of this demo and presentation. You can make it your own or use it as is. You are also welcome to improve the talk and demo and contribute back.

Known presentations

You can’t perform that action at this time.