ntkzwane / Microservice-Tutorial

Java-based microservices, JHipster, and Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microservice-Tutorial

Java-based microservices, JHipster, and Kubernetes

The purpose of this tutorial is to introduce you to the basic concepts of a Java-based microservices architecture. We will demonstrate using JHipster to generate services, using Docker for containers and Kubernetes for container orchestration.

Getting started

Install all of the following tools

Hello Minikube

To familiarise yourself with Minikube first, you can work through the Hello Minikube tutorial.

Fork this repo

Start by forking this repo. This will create a copy of this repo in your own Github account.

Fork your own copy of BSG-Africa/Microservice-Tutorial to your account

Clone your fork

Next, clone your fork using the URL of your own repo.

Clone your fork

Using your terminal, run:

git clone <repo URL>

For example:

git clone https://github.com/<username>/Microservice-Tutorial.git

Install JHipster

Install yarn:

npm install -g yarn

Install JHipster:

yarn global add generator-jhipster@4.14.0

Add binaries installed by yarn to your PATH:

echo 'export PATH="$PATH:`yarn global bin`:$HOME/.config/yarn/global/node_modules/.bin"' >> ~/.bashrc
source ~/.bashrc

Test your installation:

jhipster --version

> Using JHipster version installed globally
> 4.14.0

Presentations

The presentations, covering some basic theory behind this tutorial, can be found here.

Practical

Let's get our hands dirty!

  1. Run and interact with your first microservice - User Authorization and Authentication
  2. Generate an API-Gateway, service registry and monitoring console
  3. Configure ingress to your application
  4. Set up an example service that will interact with other microservices to fulfill requests

About

Java-based microservices, JHipster, and Kubernetes

License:MIT License


Languages

Language:Java 93.6%Language:HTML 2.4%Language:Shell 2.3%Language:Batchfile 1.6%Language:Gherkin 0.1%