Steps to build microservices with Jhipster
Setup Env with Java
path JAVA_HOME JRE_HOME PATH JRE_HOME\bin (important for keytool)Use cmder.exe in windows
Setup node.js
Ubuntu for example :sudo apt-get install python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update (refresh apt) sudo apt-get install nodejs (install nodejs)
Test node.js
node -v node
Setup yeoman, Bower, Gulp and Jhipster
The tools for building Spring ServicesInstall Yeoman: npm install -g yo
Install Bower: npm install -g bower Install Gulp: npm install -g gulp
Install JHipster: npm install -g generator-jhipster
Create microservice project
Start Jhipster in the targeted folder (Warning in windows, the path should be reduce as possible) yo jhipster Start1) Build UUA project for Auth purposes
2) Build and Start gateway with UUA in reference
3) Build and Start microservices (microservice application)
For each, gradlew to build and start Use jdl-studio to build buisness objects
JDL Studio :
A tool to build objects and cross références.https://jhipster.github.io/jdl-studio/
Note: With JHipster User object is a private Object for Authentication mecanisme
Commentaires
Enregistrer un commentaire