JUG Mainz, Sep. 9th 2020
Frederik Hahne
@atomfrede
atomfrede.gitlab.io
+
=
-
+
=
-
https://github.com/jhipster/prettier-java
https://hipster-labs.github.io/github-dashboard/
Let's get started
// Installed node, java and git (optional)
npm install -g generator-jhipster
npm install -g generator-jhipster-micronaut
mhipster
application {
config {
baseName hike
applicationType monolith
authenticationType oauth2
packageName com.github.atomfrede.example.hike
prodDatabaseType postgresql
}
entities *
}
entity HikingLocation {
name String required
description String required
}
entity Hike {
name String required
date LocalDate required
description TextBlob required
photo ImageBlob required
type Difficulty required
length Integer required
}
enum Difficulty {
EASY,
MEDIUM,
HARD,
ULTRA
}
relationship OneToOne {
Hike{startLocation(name)} to HikingLocation,
Hike{destination(name)} to HikingLocation
}
paginate Hike with pagination
paginate HikingLocation with pagination
mhipster import-jdl app.jdl
docker-compose -f src/main/docker/keycloak.yml up -d
./mvnw
./mvnw -P-webpack
npm start
Rapid Application Generation
Going to the cloud
mhipster heroku
https://www.jhipster.tech/jhipster-code/