For the invoice application, our JDL will look as follows. Add it after the gateway application declaration:
application { config { baseName invoice, applicationType microservice, packageName com.mycompany.store, serviceDiscoveryType eureka, authenticationType jwt, prodDatabaseType mysql, buildTool gradle, serverPort 8081, languages [en, zh-cn, ta] }}
We will set applicationType to microservice and, similar to our gateway, select jwt for authenticationType, eureka for serviceDiscoveryType, and so on. Since we don't want any port conflicts, we will also set serverPort to 8081.