Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
nomuna
@nomuna
@BLKingLLC Glad you got it working.
Ghost
@ghost~5de8194fd73408ce4fd31979
i'm having some trouble with integration of jhipster front end with summernote or another wysiwyg editor, someone can help me?
nomuna
@nomuna
@gudeliauskaspam What did you use as front end framework?
Ghost
@ghost~5de8194fd73408ce4fd31979
front end angular
nomuna
@nomuna
I think you will have to create the views first as html in you WYSIWYG editor and then break it down to angular components/templates...
Ghost
@ghost~5de8194fd73408ce4fd31979
how can i do it?
ive never worked with this before
nomuna
@nomuna
Sounds like you need first a little angular tutorial etc. Go to their website and go through the tutorial. You'll get an idea how it is done.
Ghost
@ghost~5de8194fd73408ce4fd31979
okay, thanks!
Bobby King
@BLKingLLC
@gudeliauskaspam You can also get some good tutorials from Udemy
Jon Ruddell
@ruddell
@gudeliauskaspam I recommend finding an Angular library for the wysiwyg editors, an example for Summernote and Angular is https://github.com/lula/ngx-summernote (have not used it myself). Note in the setup instructions, instead of adding resources to angular.json, import the css to vendor.scss and js to vendor.ts
nomuna
@nomuna
@ruddell Looks like it is itself an angular application. She has to know to build it first. Thanks for the tip though, I'll check it out.
Jon Ruddell
@ruddell
@nomuna While the library does have a sample application under src, its main purpose is providing Angular components using Summernote. You can then use <div [ngxSummernote]></div> instead of using JQuery to initialize the editor
薯条
@qierkang
@ruddell thank I've got it
Alejandro Matos
@amatosg
@BLKingLLC it doesn’t work, it only shows ’error'
ChipchipLovely
@haxuanlac_gitlab
I run commnad : mvnw -Pprod package docker:build.But in src\main\docker not have .war file.I want insert copy command in Dockerfile by copy war file from target to src\main\docker.Please give me some instatuction.Many thanks
PacoMunoz
@PacoMunoz
@haxuanlac_gitlab This command don't generate a war file. It generate a docker imagen than you can see with 'docker images' command
To generate a war file use this:

To package the application as a “production” WAR, with Maven please type:

./mvnw -Pprod,war clean verify

Bobby King
@BLKingLLC
@amatosg That stinks! Mine worked just fine, tried it several times. I wonder if there's something different in the versions of JHipster? I'm on 6.4.1
bdrichard1
@bdrichard1
I have a generated jhipster project with domain code which makes REST calls via jersey client. I would like to add maven dependencies programmatically, without having to modify the pom directly. How would i do this?
Bobby King
@BLKingLLC
Something is catching the 500 error and interpreting it, I'm just not sure which file it is.
Ghost
@ghost~5de8194fd73408ce4fd31979
@ruddell unfortunately didn't worked
@nomuna yes, angular + type script
Bobby King
@BLKingLLC
Does the query feature work for anyone? Mine always returns no results.
Jon Ruddell
@ruddell
@BLKingLLC Which query features? If you are talking about elasticsearch, the fake data isn't indexed in elasticsearch since the indexing happens on entity save. If you add/edit entities, then they should return with a matching query
Bobby King
@BLKingLLC
@ruddell thanks, I forgot all about that
Bobby King
@BLKingLLC
Ok, follow up question. How do I reindex the elasticsearch indices? The module referenced in the JHipster documentation doesn't work on 6.4.1
nomuna
@nomuna
@ruddell I tried it out and got an advanced editor... Nothing fancy... May be there is more to it. Is there any videos on youtube or informative articles about it? I usually use just some editor that understands emmet and later on drop in bootstrap to get the look I want. Not a designer here. Just need something quick and fast. But would be nice if I could level up in design/html/css area a bit. :D
Jon Ruddell
@ruddell
@nomuna I couldn't get the Summernote lib to work but I have used Quill before, example using PrimeNG and Quill here: ruddell/jhipster-examples@681876a . PrimeNG has many other nice components as well. I'd google the library name if you are looking for videos/articles
@BLKingLLC You can see a basic re-indexing API endpoint and service that works with v6 here: ruddell/jhipster-examples@7ab7510 . Adding entities to this service is manual (copy how User is done) since it's not a module at this point
Jon Ruddell
@ruddell
Note it does throw an error but it seems to work anyway. Called through Swagger or via Curl
Ghost
@ghost~5de95ee1d73408ce4fd33850
@ruddell im going to look it!
Bobby King
@BLKingLLC
@ruddell WooHoo! That works
Bobby King
@BLKingLLC
Was there a particular reason you went with a PostMapping instead of a GetMapping?
I may be showing my ignorance...
Peter E Olsen III
@hepaestus
I have an ONCHANGE type event that is firing a bunch of times for no reason. Anyone else have a form that fires a bunch of stuff endlessly until a stack overflow occurs.
Peter E Olsen III
@hepaestus
My Form is firing one of my functions a billion times for any click. No matter where I click on the form it fires for some reason
Ghost
@ghost~5de95ee1d73408ce4fd33850
@ruddell when i install primeng, many other things are deleted or missing, and crashes everything. Thats my biggest problem, when I solve one, many others appears
Jon Ruddell
@ruddell
@BLKingLLC @PostMapping was used by the module. And it changes data rather than getting data
@gudeliauskaspam I didn't have any issues with the basic Quill demo above. Do you have any specific error messages?
nomuna
@nomuna
@ruddell How do I exclude certain fields of a domain object from indexing?
ChipchipLovely
@haxuanlac_gitlab
i read and build example by this url : https://dzone.com/articles/build-secure-microservices-with-jhipster-docker-an.
But i create docker-compose and run docker-compose up -d from the docker-compose directory, i don't know how about to check log if build error or url of service running.Some body can help me?
Samuel
@iroCheese
Hi guys, I'm currently trying to set up a Kubernetes cluster with Istio and a JHipster microservices + UAA combination. I disabled serviceDiscovery for all microservices and the gateway since I would like to have Istio handle this. Currently I am struggling because my gateway can't connect to the UAA service. As there are several bug tickets concerning this combination I am wondering if anyone managed to successfully run a setup like this?
Jon Ruddell
@ruddell
@haxuanlac_gitlab First of all, note that the commands to build docker images changed since that article (docs). To see the logs from a running or stopped container, you can use the docker logs command. You can also see the ports exposed by a container with the docker ps command
@nomuna I'm not positive, I'm sure it's somewhere in the spring-data-elasticsearch docs. I think you can annotate the entity field with @JsonIgnore, that may affect your API though if you don't use DTOs
@iroCheese Based on the fact that there is an open pull-request to fix UAA without Eureka, I don't think it is currently possible jhipster/generator-jhipster#10763
Alejandro Matos
@amatosg
I want to send an error message from the back to the front end. I created a custom Exception class, then I call the HeaderUtils.createFailureAlert(…) but I don’t see my custom error message. Has any one tried this?
Jon Ruddell
@ruddell
@amatosg When I use throw new Exception("test"), I see "test" in the detail field of the response. If I create a new CustomException (copied BadRequestAlertException and changed error code and message), then I see the "test" message in the title field of the response. Then (in ExceptionTranslator) if I copy handleBadRequestAlertException to handleCustomException, I can get the createFailureAlert headers into the response (x-myApp-error and x-myApp-params).
Note that HeaderUtils.createFailureAlert only returns the HttpHeaders object that is part of the ResponseEntity returned by ExceptionTranslator