Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Tutorial on Microservices Architecture with JHipster :: Installation

This tutorial is valid for JHipster 7.9.3 (jhipster --version). Please, check the command lines for building and running into the generated README.md documents if the commands fail.

Working directory

mkdir -p ~/github/mastering-microservices
cd ~/github/mastering-microservices
# git clone https://github.com/mastering-microservices/tutorial_en.git
git clone [email protected]:mastering-microservices/tutorial_en.git

JHipster Installation

Follow the instructions: https://www.jhipster.tech/installation/

JDK (AdoptOpenJDK)

Download and install the latest LTS (Long Term Support) release of AdoptOpenJDK for your system.

jdk-11.0.17+8 is the latest LTS at Dec 15, 2022

cd ~/Downloads
wget https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.17%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.17_8.tar.gz
tar xzf OpenJDK11U-jdk_x64_linux_hotspot_11.0.17_8.tar.gz
export PATH=$PWD/jdk-11.0.17+8/bin:$PATH
java -version
openjdk version "11.0.17" 2022-10-25
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode)

Add export PATH=$PWD/jdk-11.0.17+8/bin:$PATH to .bashrc

Nvm et Node

Follow the instructions: https://github.com/creationix/nvm

Install npm

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash

Install the latest LTS of NodeJS (and npm)

nvm ls-remote
nvm install v18.12.1
nvm ls
nvm use v18.12.1
nodejs --version

Cloc (Count Lines of Code)

npm install -g cloc

Yeoman

npm install -g yo
yo --version

JHipster Generator

npm install -g generator-jhipster
jhipster --version
# show all the subgenerators
INFO! Using bundled JHipster
7.9.3

7.9.3 (Dec. 15, 2022)

Docker CE

Install Docker CE + Docker Compose or Docker Desktop on your system.

Follow the instructions https://docs.docker.com/install/ and https://docs.docker.com/compose/install/ for docker-compose.

docker --version
docker-compose --version
docker compose --version

Heroku

Get your Heroku credits with your Github Student Developer Pack.

Follow the instructions: https://devcenter.heroku.com/articles/heroku-cli

sudo snap install --classic heroku
# curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
heroku --version
heroku help

Check your Heroku account thru https://signup.heroku.com/

Browser mode:

heroku login

CLI mode:

heroku login -i
heroku apps
heroku plugins
heroku logs

References:

Kubectl

Follow the instructions https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

kubectl version --client

Google Cloud SDK

Follow the instructions https://cloud.google.com/sdk/docs/downloads-interactive

curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud --version

At Dec 15, 2022.

Google Cloud SDK 411.0.0
bq 2.0.83
core 2022.12.05
gcloud-crc32c 1.0.0
gsutil 5.17
```


Check your Google Cloud Platform account
```bash
gcloud init
```

Sometime, we need:
```bash
source .bashrc 
gcloud --help
```