In this workshop, you are going to develop a micro-service application called vert2go. This workshop covers:
- how to build micro-services with vert.x
- how you can use the event bus to bind your micro-services
- how to consume a REST API
- how to build an application using several persistence technologies
- how to provide a REST API, and build proxies
- how to deploy some micro-service to Openshift
- how to centralize your logs
- how to deploy a vert.x micro-service in a docker container
- how to monitor your application
The vert2go application is a recommendation application where users can rates the place they like.
The slides are available on: http://devoxx0workshop0slides-vertxdemos.rhcloud.com/#/
Prerequisites:
- Java 8 (JDK)
- Git
- Apache Maven
- Docker (or docker-machine)
- An IDE
- RoboMongo (optional)
We provide a virtual box image with everything you need on it.
- Install Oracle virtual box from https://www.virtualbox.org/wiki/Downloads. Installation details are on https://www.virtualbox.org/manual/ch02.html
- Retrieve the virtual box image (
vertx-workshop.ova
). - Open virtual box and import the appliance (File -> Import Appliance)
- Select the
vertx-workshop.ova
file and click on import on the next screen - Wait....
- Start the virtual machine by selecting it and then clic on the Start button (green arrow)
Docker runs natively on Linux. Because the Docker daemon uses Linux-specific kernel features, you can’t run Docker natively in OS X or Windows. Instead, you must use docker-machine to create and attach to a virtual machine (VM). This machine is a Linux VM that hosts Docker for you on your Mac or Windows. If you are on Mac OS X or Windows, you can use docker via docker machine (https://docs.docker.com/machine/).
- Install docker and docker-machine from https://www.docker.com/docker-toolbox. Installation instructions are there: http://docs.docker.com/mac/step_one/
- Once done run
docker run hello-world
to verify your installation
The installation process will create a VM that has a minimal linux to run docker.