My slides of my session at IconUK and more

Icon UK 2018 has finished. Was great to see and speak to many people again.

My Slides of IconUK

Here are the slides of my session.

….and more

For my session I have created a (small) open source project to give you a head start if you want to get starting with Spring Boot and Thymeleaf.

As far I can see the basics are included

  • REST API controller
  • Page controlle
  • Templates
  • Fragments
  • Localisation
  • Security
  • manifest file to push application to Cloud Foundry
  • Docker file
  • Kubernetes file

You can find this project on Bitbucket, https://bitbucket.org/flinden68/spring-forward-starter/src/develop/

Quick tip: Swagger support for Spring Webflux

At my customers when I create microservices I always add Swagger support, because it easy to test the microservice.

Another create benefit it gives the business also a nice UI to see what to expect.

Problem

Now I am preparing a demo for my session about Reactive Programming, which I will give at Social Connections 14 event next month in Berlin, I was thinking how to add support to my Spring Webflux demo.

But the current Swagger versions doesn’t support Spring Webflux

Solution

After some research I found that Swagger2 will add support for Spring Webflux in version 3.0.0

But there is already a SNAPSHOT in the wild with support.

Add version 3.0.0-SNAPSHOT to your dependencies in your pom.xm

After the dependencies are loaded in your project

Go to or create a SwaggerConfiguration class and add @EnableSwagger2WebFlux to your class

 

When you start your application head over to the swagger-ui.html and voila.

 

Happy coding

I am…. speaking at Icon UK and Social Connections

I am on my way to Birmingham to attend and speak at Icon UK

On Friday at 12:10 – 12:55 I will have my session

Spring forward: an introduction to Spring boot and Thymeleaf for (XPages) developers

The world of (XPages) developer is moving fast. Customers rethinking platforms and solutions. Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”. In combination with Thymeleaf can it be good alternative for your XPages applications.
In this session I give an introduction of Spring Boot and Thymeleaf and how to get started. I will show the differences and similarities between Spring Boot in combination with Thymeleaf and XPages.
I will explain the challenges I faced when moving an application.

 

And next month I will be return to Social Connections to speak at the new technology track. My session will on 16 October at 11:15 am – 12:25 pm

Super charge your API’s with Reactive streams

Today almost every product has an API, to integrate in other products or to made the data available to the outside world. Most API’s are using traditional patterns and technology. With the rise of Angular, React and other modern frameworks there is a need for non blocking API’s. Meet Reactive streams, like Spring Webflux, to super charge your API.
In this session I will tell about and show you Reactive API’s and more.

 

Hope to see you at one of my sessions, will be fun.

The slides of my session at Engage 2018

Engage 2018 is over. Another great event, this time at the stunning venue, the SS Rotterdam.

My slides

Here is are my slides of my session. Thanks everyone who had attended my session

Demo project

For this session I have created a small starter project.
This project contains:
  • Demo page, which shows how to use Thymealeaf templates and fragment
  • Internationalisation
  • REST API
  • JUnit test
  • Docker file, to deploy the project as an Docker image
  • Manifest file, to deploy it to a Cloud Foundry Platform, like IBM Cloud
  • Kubernetes file, so you can use the project in a Kubernetes cluster.

It can be found on Bitbucket, https://bitbucket.org/flinden68/spring-forward-starter/src/develop/

spring thymeleaf

 

Quick tip: test HTML pages on a local webserver with NodeJS

At a customer we are building lots of microservices with Spring boot which runs on Pivotal Cloud Foundry hosted at the Azure platform.

Some of these microservices are called from web pages with certain specific information, like field info.

So in our projects we have most of the time a test html page to mimic the actual behavior.

NodeJS http-server to the rescue

there is a very nice NPM package, http-server, to host this test page with a minimal of effort

Easiest way is to install it globally by the following command in a command line.

[dropshadowbox align=”none” effect=”lifted-both” width=”auto” height=”” background_color=”#ffffff” border_width=”1″ border_color=”#dddddd” ]npm install http-server -g[/dropshadowbox]

Now you can use it everywhere.

Next step is to go to the directory in the command line, where the test page is located.

There fire the commando

[dropshadowbox align=”none” effect=”lifted-both” width=”auto” height=”” background_color=”#ffffff” border_width=”1″ border_color=”#dddddd” ]http-server[/dropshadowbox]

In the command line you will see the http server starting and on which port the page is available

nodejs http-server

Quick tip: run your Cloudant data everywhere with CouchDb

I moved our HR Assistant application to a Spring boot to run everywhere, but the data was still stored in a Cloudant database running on IBM Cloud. No problem, but not that flexible.

So I was looking for a way to to store the data somewhere with minimum impact.

Step 1: Get CouchDb running

I found Apache CouchDb and I followed the instructions from this github repository to setup a local version in Docker

By starting the docker container I was able to access the familiar web UI via http://localhost:5984/_utils/

Step 2: Replication

To get all my data from the Cloudant database I created a new Replication and keep the Replication Type on ‘One Time’

CouchDb replication

Step 3: change the properties

Next I need to point the HR Assistant application to my local CouchDb database. For CouchDb account can be empty

HRAssistant-ApplicationProperties

Step 4: check the application

After I started the application and logged in I see the same as I was seeing when my data was loaded from Cloudant.

HRAssistant-CouchDb

 

So with no code changes I am able to run the HR Assistant application everywhere, with the data on a location where I want, in the cloud via Cloudant or local with CouchDb

A small open source project: Cloudant REST API

At IBM Think John Jardin and Paul Withers had a session, Tips and Tricks: Domino and JavaScript Development Master Class. It was great session about React, web sockets and Domino REST API.

At the end of this session I got an idea to provide a Cloudant REST API, with the same endpoints of the Domino API but storing everything in Cloudant or CoucheDb.

Cloudant REST API

I created an new module in the Git repo of this session and start coding. Which results in a Spring Boot application. All the endpoints of the Domino REST API are available in this new REST API.

I used Spring Boot to show the power to build fast new REST API’s. There is built-in support for Swagger.

The service can create on the fly databases and manage the access control of the database. And all the CRUD operations you would expect for the Todos

SwaggerSupport

Run everywhere

With Spring boot you can run it everywhere. Out-of-the-box the application will run as runnable jar. But I also added support for Docker and Kubernetes.

There is also a manifest file present to push your application to any Cloud Foundry platform, like IBM Cloud or Pivotal Cloud Foundry.

Open source

The code is open source and part of the Git Repository used for this session. So you can reuse it or use it as a starting point for something new. Have fun with the code.

 

Engage

Paul Withers will do a rerun of the IBM Think Session at Engage later this month in Rotterdam. I think a must attend session if you want to learn some cool new technologies.

BTW I will also be presenting at Engage, my session on Tuesday at 17:00 in the Sky Room. I will talk about Spring Boot and Thymeleaf

 

I will be speaking at Engage, ship ahoy!

Earlier this week I got the confirmation from Theo Heselmans that my session proposal was accepted.

I am extremely proud to speaking again at Engage. The agenda is, again, top notch.

Engage is always a special place for me, because Theo gave me, in 2012, the opportunity to speak for the first time at such a conference.

My session

On Tuesday May 22 at 17:00 in the Sky Room I will speaking about Spring boot and Thymeleaf.

Dev03. Spring forward: an introduction to Spring boot and Thymeleaf for (XPages) developers

The world of (XPages) developer is moving fast. Customers rethinking platforms and solutions. Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”. In combination with Thymeleaf can it be good alternative for your XPages applications.
In this session I give an introduction of Spring Boot and Thymeleaf and how to get started. I will show the differences and simularities between Spring Boot in combination with Thymeleaf and XPages.
I will explain the challenges I faced when moving an application.

 

Happy to be back and hope to see you all in Rotterdam.

The next period I need to run more, to be prepared for all the chocolate 😉

 

Engage

Quick tip: Front end frameworks and Maven dependencies

Lately I am only building application with Spring Boot, where I use Thymeleaf front end templating engine.

A very powerful combination, but sometimes you need other Front end frameworks, like Bootstrap or JQuery and more.

Problem

You can add all the required files of the desired front end frameworks to the resource directories for your static files, like css and javascript.

I found out is a lot of work to get all these files, but some of these projects has dependencies with other projects. Then it gets messy.

Solution

Head over to WebJars, to find your needed frameworks. Select the version and the Build tool and you get the required code to add to your build file. In my case it Maven. So I added the Dependency code to my pom.xml and run a ‘mvn clean install’ and voila all the files are added to my project.

webjars

When there is an update of project, just increase the version number and rerun the ‘mvn clean install’ to get up to date.

How to use

The files are not visible under the resource folder. But can used directly in your html files.

webjars-frontend

What I am thinking about IBM Think

2 weeks ago I have attended IBM Think in Las Vegas. The super conference of IBM by merging all the other conferences, like InterConnect, Edge, Amplify, World Of Watson and Connect/Lotusphere

 

Overall impression

Last year I was at IBM InterConnect, so I was prepared for the amount of attendees. And yes on Monday when Partnerworld and the Showcase where not running, it was a bit crowded in the hallways. Food was not bad, but the coffee, as an European, was a lacking caffeine 😉

The showcase was huge. The set up with lots of Think Tanks and Theaters was a good approach. A more informal way to deliver content.

As a developer the Dev Zone was a sort of coming home. Had a few good discussions with IBM developers.

Meeting lots of other IBM Champions and the ‘feeling special’ feeling provided by Libby and her wranglers made it worth to attend IBM Think

Domino and the future

The development of Domino and Notes where moved to HCL, and lots of IBM-ers have followed the code. In the past month the Jams and webinars shows a increasing interest to make Domino Great again.

At Think they announced the support of iOS, in other words all the Notes applications will run natively on a iPad.

In my opinion this is good news for the Notes apps, but modernisation of the apps is still needed. Lots of Notes apps do not have the sexy look and feel, so they will not look any better on an iPad.

My worry is the Notes developers. They might be thinking they stay on Lotusscript and @Fomulas forever. I think it is not career proof strategy.

The announcement of NodeJS support of Domino is very good one. Now we can make cutting edge front end / mobile apps with the latest and greatest frontend frameworks, like Angular/React/Vue……

 

Collaboration sessions

Collaboration solutions has an own morning with very good sessions. Especially the session of Rene Schimmer about IBM Connections was good. Lots of great new features on the horizon and Rene presented it very relaxed in a steady pace.

Almost all the ‘other’ ICS sessions where in room Surf B. Very well planned, so ICS has almost their own room to gather. Smart move.

 

Handson labs

I did a few hands-on labs, for me the best way to learn. I did one about IoT and Node-Red, one about Blockchain and one about deploy Microservices via Kubernetes.

I must say these where the best things at IBM Think.

Community and Champion day

At Sunday IBM Think started with Community and Champion day. A day full of content about User groups and more. Lots of sessions were presented by my fellow IBM Champions.

 

Next year IBM Think will be moved to San Francisco to fill the Moscone Center. Mark the date, February 12th till 15th 2019. Hope to see you there