https://github.com/jhipster/jhipster-registry
- open
pom.xml
- change
<java.version>11</java.version>
to<java.version>8</java.version>
- find
<release>${java.version}</release>
and comment this line
Perform that commands, the Jipster Registry will be supported by java version 8 instead version 11 (recommend use version 11 because, in soon, the support to java 8 will be removed)
git clone https://github.com/jhipster/jhipster-registry.git registry
cd registry && npm install && ./mvnw
cd registry && ./mvnw
Before to execute the services deploy, its need execute the script bellow (this script work only to Linux based operation system):
cd ./docker && sh create-volumes-to-docker-service.sh
cd ./docker
sh deploy-services.sh
cd ./docker
sh undeploy-services.sh
keycloak.yml
The directory realm-config
contains the realm will be imported to Keycloak on startup.
Its necessary add an configration to /etc/hosts
to allow use Keycloak inside Docker.
127.0.0.1 keycloak
postgres.yml
mongodb.yml
https://www.youtube.com/watch?v=6Gd7OOjqHX0
- Which type of application would you like to create?
Microservice application
- [Alpha] Do you want to make it reactive with Spring WebFlux?
No
- What is the base name of your application?
blog
- As you are running in a microservice architecture, on which port would like your server to run? It should be unique to avoid port confli
cts.
8081
- What is your default Java package name?
com.jetherrodrigues.blog
- Which service discovery server do you want to use?
JHipster Registry (uses Eureka, provides Spring Cloud Config support and monitoring dashboards)
- Which type of authentication would you like to use?
OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)
- Which type of database would you like to use?
SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)
- Which production database would you like to use?
PostgreSQL
- Which development database would you like to use?
PostgreSQL
- Do you want to use the Spring cache abstraction?
Yes, with the Hazelcast implementation (distributed cache, for multiple nodes, supports rate-limiting for gateway applications)
- Do you want to use Hibernate 2nd level cache?
Yes
- Would you like to use Maven or Gradle for building the backend?
Maven
- Which other technologies would you like to use?
Search engine using Elasticsearch
- Would you like to enable internationalization support?
Yes
- Please choose the native language of the application
English
- Please choose additional languages to install
Portuguese (Brazilian)
- Besides JUnit and Jest, which testing frameworks would you like to use?
Gatling, Cucumber
- Would you like to install other generators from the JHipster Marketplace? (y/N)
n
cd blog
jhipster import-jdl blog.jdl
entity Blog {
name String required minlength(3)
handle String required minlength(2)
}
entity Post {
title String required
content TextBlob required
date Instant required
}
entity Tag {
name String required minlength(2)
}
relationship ManyToOne {
Blog{user(login)} to User
Post{blog(name)} to Blog
}
relationship ManyToMany {
Post{tag(name)} to Tag{entry}
}
microservice Blog with blog
microservice Post with blog
microservice Tag with blog
- Which type of application would you like to create?
Microservice application
- [Alpha] Do you want to make it reactive with Spring WebFlux?
No
- What is the base name of your application?
store
- As you are running in a microservice architecture, on which port would like your server to run? It should be unique to avoid port confli
cts.
8082
- What is your default Java package name?
com.jetherrodrigues.store
- Which service discovery server do you want to use?
JHipster Registry (uses Eureka, provides Spring Cloud Config support and monitoring dashboards)
- Which type of authentication would you like to use?
OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)
- Which type of database would you like to use?
SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)
- Which production database would you like to use?
PostgreSQL
- Which development database would you like to use?
PostgreSQL
- Do you want to use the Spring cache abstraction?
Yes, with the Hazelcast implementation (distributed cache, for multiple nodes, supports rate-limiting for gateway applications)
- Do you want to use Hibernate 2nd level cache?
Yes
- Would you like to use Maven or Gradle for building the backend?
Maven
- Which other technologies would you like to use?
Search engine using Elasticsearch
- Would you like to enable internationalization support?
Yes
- Please choose the native language of the application
English
- Please choose additional languages to install
Portuguese (Brazilian)
- Besides JUnit and Jest, which testing frameworks would you like to use?
Gatling, Cucumber
- Would you like to install other generators from the JHipster Marketplace? (y/N)
n
cd store
jhipster import-jdl store.jdl
entity Product {
sku String required minlength(5) unique
name String required minlength(3)
observation String maxlength(256)
price BigDecimal required
}
microservice Product with store
- Which type of application would you like to create?
Microservice gateway
- [Alpha] Do you want to make it reactive with Spring WebFlux?
No
- What is the base name of your application?
gateway
- As you are running in a microservice architecture, on which port would like your server to run? It should be unique to avoid port confli
cts.
8080
- What is your default Java package name?
com.jetherrodrigues.gateway
- Which service discovery server do you want to use?
JHipster Registry (uses Eureka, provides Spring Cloud Config support and monitoring dashboards)
- Which type of authentication would you like to use?
OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)
- Which type of database would you like to use?
MongoDB
- Do you want to use the Spring cache abstraction?
Yes, with the Ehcache implementation (local cache, for a single node)
- Would you like to use Maven or Gradle for building the backend?
Maven
- Which other technologies would you like to use? (Press to select, to toggle all, to invert selection)
Nothing
- Which Framework would you like to use for the client?
Angular
- Would you like to use a Bootswatch theme (https://bootswatch.com/)?
Lumen
- Choose a Bootswatch variant navbar theme (https://bootswatch.com/)?
Primary
- Would you like to enable internationalization support?
Yes
- Please choose the native language of the application
English
- Please choose additional languages to install
Portuguese (Brazilian)
- Besides JUnit and Jest, which testing frameworks would you like to use?
Gatling, Cucumber, Protractor
- Would you like to install other generators from the JHipster Marketplace? (y/N)
N
jhipster import-jdl ../blog/blog.jdl
jhipster import-jdl ../store/store.jdl
-
cd docker-compose-msa
-
jhipster docker-compose
-
Which type of application would you like to deploy?
Microservice application
-
Which type of gateway would you like to use?
JHipster gateway based on Netflix Zuul
-
Enter the root directory where your gateway(s) and microservices are located
../
-
Which applications do you want to include in your configuration?
blog, gateway, store
-
Which applications do you want to use with clustered databases (only available with MongoDB and Couchbase)? (Press to select, <a
to toggle all, to invert selection)
Nothing
- Do you want to setup monitoring for your applications ?
No
JHipster registry detected as the service discovery and configuration provider used by your apps
- Enter the admin password used to secure the JHipster Registryadmin
To generate the missing Docker image(s), please run:
./mvnw -ntp -Pprod verify jib:dockerBuild in ../blog
./mvnw -ntp -Pprod verify jib:dockerBuild in ../gateway
./mvnw -ntp -Pprod verify jib:dockerBuild in ../store
cd docker-compose-msa && docker-compose up -d
https://github.com/maxdevjs/kitematic.wiki-my/blob/master/Linux-Install.md
if an error occurred in installation access this link to help to solve the install problem:
https://www.how2shout.com/how-to/how-to-install-kitematic-on-ubuntu-20-04.html