jhipster-online icon indicating copy to clipboard operation
jhipster-online copied to clipboard

Improve the App Generation

Open cmoine opened this issue 5 years ago • 6 comments

Overview of the feature request

The actual implementation is pretty basic and does not allow to use it in a productive manner.

Motivation for or Use Case

I found this web page very convenient because I did not have to install/configure/update jHipster every time, unfortunately, I cannot use this web page anymore if I want to generate VueJS app, since it is a blueprint. For me it is a show stopper for using it now. It would be cool to integrate official blueprints usage into this web page

It would be also very nice to remember every choice made in this page, so we are able to generate an app generated with a newer version of JHipster.

Related issues or PR

None, but I would be glad to contribute for this feature in a PR.

cmoine avatar Oct 08 '19 12:10 cmoine

The creation of the .yo-rc.json is fine (tested separately), but JHipster invocation from JHipster online is stuck on: INFO! Options: forceInsight: true, skipChecks: true, skipInstall: true, skipCache: true, skipGit: true, from-cli: true, force-insight: true, skip-checks: true, skip-install: true, skip-cache: true, skip-git: true

And then reach the timeout !?!? What is going on?

Is it because I am using Windows? I did this in the YML:

application:
    jhipster-cmd:
        cmd: node.exe C:/Users/chris/AppData/Roaming/npm/node_modules/generator-jhipster/cli/jhipster.js

any help would be appreciated.

cmoine avatar Oct 09 '19 19:10 cmoine

Hmm, it seems that the remaining log is output to error output. Reading the error output seems to fix the problem. I will use Apache Commons Exec to properly address those issues. And I will attach a log file into the ZIP to see what happens with the command 8-) ;-)

cmoine avatar Oct 09 '19 19:10 cmoine

@cmoine : Hey, thanks for opening this issue and sorry it didn't get much attention before; I think it's a good idea. Are you still working on this issue? Could you open a draft pull request? I can take a look as well if needed. :smile:

SudharakaP avatar Jun 14 '20 17:06 SudharakaP

Hi @SudharakaP, Thank you for you help. I did some progress, but didn't work on it for a long time: https://github.com/cmoine/jhipster-online.git Saving previous selected/entered values was pretty easy, however, running blueprints is honestly a real pain:

  • Retrieving dynamic options (however I find a dirty way to do it)
  • I was stuck for running blueprints.... I didn't manage to make this work properly. There were plans to run JHipster generation into GCP containers, I don't know where this work is now. I will investigate this part.

cmoine avatar Jun 16 '20 08:06 cmoine

Related to https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/jhipster-dev/2Q5pQuBGA3Q/yPwJN-W-BgAJ

cmoine avatar Jun 16 '20 09:06 cmoine

Here a simple use case of new release:

  • I did a new release of generator-jhipster v6.9.1
  • then, the blueprint vue.js has been aligned with v6.9.1 -> https://github.com/jhipster/jhipster-vuejs/releases/tag/v1.8.2 : so it will work in jhipster-online
  • the blueprint nodejs will fail, when you want to generate the application, as it's aligned with 6.8.0 (missing 6.9.0 and 6.9.1) -> https://github.com/jhipster/generator-jhipster-nodejs/blob/master/package.json#L39

The main problem is all blueprints depends on a specific version of generator-jhipster. You need to install the exact version, otherwise, you can have some problem.

pascalgrimaud avatar Jun 16 '20 12:06 pascalgrimaud