czgov / isds-gmail-example-spring-boot

Demo application which simply "forwards" messages from your databox to your Gmail using spring boot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ISDS Gmail Example

Demo application which simply "forwards" messages from your databox to your Gmail.

This demo is written using spring boot and it's ready for deployment into OpenShift v3.
There is also demo showing deployment into JBoss Fuse 6.3.

It will poll for new messages from "Informační Systém Datových Schránek" (shortcut ISDS) and send every received message to e-mail address you specify as recipient.

Demo Application overview

Getting Access to ISDS

See section getting access of underlying Camel ISDS component.

Running locally

git clone https://github.com/czgov/isds-gmail-example-spring-boot.git

cd isds-gmail-example-spring-boot

mvn clean install spring-boot:run

Running on Openshift

First we need to have some project for testing applications.

One can create on OpenShift "welcome screen".
Note there is also link to install command line tools in top right corner.

Openshift welcome screen

Easiest way to deploy the application is to use prepared template.

Template can be imported to Openshift via command line:

oc create -f https://raw.githubusercontent.com/czgov/isds-gmail-example-spring-boot/master/openshift-template.yml

Another way is to use Openshift web console to import template.

One would click "Add to project" Add to project

and copy-paste content of openshift-template.yml here: Upload template

Last step is to fill login credentials for ISDS and for your Gmail account and start application.

App can be created also from command line (replace ${PARAM} with appropriate values):

oc new-app isds-gmail-example-spring-boot \
	-p ISDS_ENV=PRODUCTION \
	-p ISDS_LOGIN=${ISDS_LOGIN} \
	-p ISDS_PASSWORD=${ISDS_PASSWORD} \
	-p GMAIL_LOGIN=${GMAIL_LOGIN} \
	-p GMAIL_RECIPIENT=${GMAIL_RECIPIENT} \
	-p GMAIL_PASSWORD=${GMAIL_PASSWORD}

About

Demo application which simply "forwards" messages from your databox to your Gmail using spring boot.


Languages

Language:Java 67.2%Language:HTML 32.8%