jhipster

Separate Client and Server in Jhipster Gateway

我们两清 提交于 2019-12-02 03:45:41
I am implementing Microservice but want to separate Client from Jhipster Gateway so that can have modular model. Can someone let me know how to separate client and server in Jhipster Gateway? Just use the follow command: jhispter --skip-server to create gateway service without frontend. jhispter --skip-client --auth --db to create gateway frontend withou service. but I don't know how set the parameter "--auth" "--db" yet. I just merge the code generated by jhispter to the frontend code. It works for me. 来源: https://stackoverflow.com/questions/44107022/separate-client-and-server-in-jhipster

Reading of DBname.system.indexes failed on Atlas cluster by mongobee after getting connected

一世执手 提交于 2019-12-02 02:53:00
I have a Jhipster Spring boot project. Recently I shifted from mlabs standalone sandboxes to Atlas cluster sandbox M0 Free tier replica set. It even worked and I had made some database operations on it. But now for some reason then there is a read permission error Error creating bean with name 'mongobee' defined in class path resource [DatabaseConfiguration.class]: Invocation of init method failed; nested exception is com.mongodb.MongoQueryException: Query failed with error code 8000 and error message 'user is not allowed to do action [find] on [test.system.indexes]' on server ********-shard

*** process.env.ENV is not defined, assuming 'prod' env

丶灬走出姿态 提交于 2019-12-02 01:15:24
I am unable to open My JHipster + Angular 2 (Gateway) Application home page with port 8080 (which is given at server port in application-dev.yml ) and Getting following exception in console *** process.env.ENV is not defined, assuming 'prod' env The Same application is running fine on port 9000 (which is given by yarn) and giving exception like below in console. process.env.ENV is not defined, assuming 'prod' env chrome-extension://kbfnbcaeplbcioakkpcpgfkobkghlhen/src/js/bundle.js:4776 *** My problem is if I use 9000 port (Given by yarn) unable to communicate with other microservices

SpringBoot app starts multiple times and disconnects from logstash

倖福魔咒の 提交于 2019-12-01 23:55:31
问题 I have an springboot application (Spring Boot v1.3.5.RELEASE) that is run on docker with ./mvnw; it "restarts" after 1-2 minutes and after second start they don't send any log to logstash.. in first start we see below log 2016-07-27 08:54:29,616 DEBUG [background-preinit] logging: Logging Provider: org.jboss.logging.Slf4jLoggerProvider found via system property bug after the second one logging provider log is missing.. **2016-07-27 08:54:25,386 INFO [restartedMain] DemoApp: Starting DemoApp

Does webpack packages files referenced in .angular-cli.json?

柔情痞子 提交于 2019-12-01 12:15:22
There is a "styles" section and "scripts" section in .angular-cli.json . I have added some files under "styles" and "scripts" sections. It appears that my angular project does not recognise these files. Is webpack aware of the configurations inside .angular-cli.json? Does webpack packages files referenced under "styles" and "scripts" section of .angular-cli.json ? If yes, how can I be sure it is actually doing this? How can I trace which files are packed, which files aren't packed by webpack? Following is the error I receive from webpack: ERROR in ./src/main/webapp/app/header/header.component

How to fix Invalid JWT with JHipster Registry [Docker]?

为君一笑 提交于 2019-12-01 11:59:17
问题 I want to build a microservices software with JHipster. I'm running jhipster-registry:v3.2.4 into Docker, i also have a microservice application (create with generator 5.0.1) but i do no generate a gateway application. I set the profiles in docker-compose.yml with: dev and native I setted the JWT Secret in Docker Compose file. I added configurations files into : central-config folder I setted the jwt for my microservice into all possible *.yml files but on the registry UI, when i'm trying to

How to fix Invalid JWT with JHipster Registry [Docker]?

試著忘記壹切 提交于 2019-12-01 11:50:14
I want to build a microservices software with JHipster. I'm running jhipster-registry:v3.2.4 into Docker, i also have a microservice application (create with generator 5.0.1) but i do no generate a gateway application. I set the profiles in docker-compose.yml with: dev and native I setted the JWT Secret in Docker Compose file. I added configurations files into : central-config folder I setted the jwt for my microservice into all possible *.yml files but on the registry UI, when i'm trying to access microservices logs or metrics, i got an Exception : Invalid JWT Signature. As you use the native

Nested angular components in projects with multiple modules like JHipster

拈花ヽ惹草 提交于 2019-12-01 11:02:21
I'm trying to show an entity component in another Entity component. I found some information about shared modules online, I also checked this post but it's still not working for me. Well, it gets a little bit complicated when you have multiple modules in your project. In a project like the ones generated by JHipster there are several modules in the project. But no worries, the solution is easy: Assuming the entity component supposed to get displayed inside another component is ReviewComponent and also assuming there is a review.module for all the Review-related components, you should export

i18n of lazy-loaded components in JHipster app

谁说我不能喝 提交于 2019-12-01 09:31:39
My App is based on JHipster and so the language services are provided by way of JhiLanguageService in the ng-jhipster library which uses a JhiConfigService to configure ngx-translate without my needing to import and configure the TranslateModule in my app.module . So when I add TranslateModule.forRoot(...) to imports of AppModule, everything breaks and I just see "translation not found..." messages everywhere. I don't know how to make my lazy-loaded pages use the same translation service instance as the eager-loaded part of the app so that changing the language in an eagerly-loaded component

How to perform actions on successful login via OAuth2 in jhipster

白昼怎懂夜的黑 提交于 2019-12-01 09:24:30
I want to ask how to perform an action after a successful login via OAuth2 and how to veto a login based on some preconditions. I tried to search on Google and found some links but I'm not sure how to do that on this framework. There might be some filter etc I can add but wanted to know the right place to do this. Note: The AuditEvent will not work for me since successful audit is called with every API call. Ref: http://blog.jdriven.com/2015/01/stateless-spring-security-part-3-jwt-social-authentication/ What I need to do is: After successful login, record a few details in a table and send a