Giter Site home page Giter Site logo

jhipster / generator-jhipster Goto Github PK

View Code? Open in Web Editor NEW
21.2K 21.2K 4.0K 155.3 MB

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.

Home Page: https://www.jhipster.tech

License: Apache License 2.0

HTML 0.01% JavaScript 12.63% Shell 0.86% Java 17.48% TypeScript 58.66% CSS 0.06% Dockerfile 0.07% Vue 1.93% SCSS 0.62% EJS 7.64% Mustache 0.04% Batchfile 0.01%
angular cloud docker generator hacktoberfest java jhipster kubernetes react spring-boot webpack yeoman-generator

generator-jhipster's People

Contributors

agaspardcilia avatar andidev avatar atomfrede avatar avdev4j avatar cbornet avatar chrisdns avatar danielfran avatar deepu105 avatar dependabot[bot] avatar github-actions[bot] avatar gmarziou avatar gzsombor avatar jdubois avatar jmirc avatar kaidohallik avatar leovr avatar mathieuaa avatar mraible avatar mshima avatar murdos avatar pascalgrimaud avatar pierrebesson avatar pvliss avatar qmonmert avatar ruddell avatar sahbi-ktifa avatar sendilkumarn avatar sudharakap avatar tcharl avatar vishal423 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-jhipster's Issues

Evaluate the use of Docker.io

Creating a Docker file would allow us to:

  • Have a clean, reproductible dev and build system (no more Node/NPM versions issues)
  • Test easily HazelCast clusters by starting easily several nodes cc @jmirc

Work on the frontend-maven-plugin

Usage of the front-maven-plugin was coded by @eirslett see #40

However it causes some trouble when using a corporate firewall, as we can't download node/npm directly

I need to take a closer look at all this.

Error during mvn:jetty:run

Java version : 1.6.0_43
During starting generated project got this error:

[INFO] --- jetty-maven-plugin:9.1.0.v20131115:run (default-cli) @ jhipster ---
Dec 6, 2013 3:52:06 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: org.eclipse.jetty.maven.plugin.JettyRunMojo
java.lang.TypeNotPresentException: Type org.eclipse.jetty.maven.plugin.JettyRunMojo not present

Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/jetty/maven/plugin/JettyRunMojo : Unsupported major.minor version 51.0

grunt stop maven to complete the task

Hi guys,

First of all, great generator, I was thinking to do something similar but your it is really awesome.

I'm trying to package the app using "prod" profile, however grunt is stopping maven to complete the task. If I run "grunt install" alone, it works, but from maven the last output is as follow (the task does not finish, it seems to be waiting for something):

I found this issue at trecloux/yeoman-maven-plugin#5, but it doesn't say much more.

Done, without errors.

Execution Time (2013-12-15 03:54:18 UTC)
concurrent:test 1s ▇▇▇▇▇▇▇▇▇▇▇ 24%
autoprefixer:dist 85ms ▇ 2%
concurrent:dist 2s ▇▇▇▇▇▇▇▇▇▇▇▇▇ 30%
autoprefixer:dist 77ms ▇ 1%
copy:dist 181ms ▇▇ 3%
uglify:generated 2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 37%
Total 5s

Thanks,
Jorge Middleton

Do a "grunt build" before generating a WAR file

All nodejs server et jetty server work fine. But i wondering how to have all files generated
by "grunt build" in the WAR when doing a "mvn package".

I see the yeoman-maven-plugin to launch yo command. May be it's possible to register a new task to generate minify, uglify, ... file and to inject it in the webapp ?

NullPointer in MailConfiguration

In MailConfiguration, the code above not working
line 26:
if (!env.getProperty("mail.port").equals("")) {

need to be replace by :
if (env.getProperty("mail.port")!= null && !env.getProperty("mail.port").equals("")) {

Migrate to C3P0

Tomcat-jdbc causes classloader issues when the WAR is deployed on Tomcat, for obvious reasons (Tomcat uses its own tomcat-jdbc lib, which can't see the JDBC driver in the WEB-INF/lib directory)...
This is annoying, as we want to be able to use Tomcat (see issue #33 also)

So let's switch to C3P0 : https://github.com/swaldman/c3p0

improve administration with profile / permission

Would be nice to have an administration panel where we can create "Profiles" and map a profile with a list of roles and permissions (or similar)

Role would be Administrator, User
A permission would be CAN_EDIT_SOMETHING, CAN_ADD_SOMETHING etc.

A user could have N Profile

If think it's quite a common feature, but it should be optionnal (LDAP or other)

Authentication is not propagated when remember me is not checked

If the customer unchecked the remember me checkbox, the user can log-in but if the page is refreshed the customer is logged-out.

The session doesn't keep the security cookie created by Spring Security because of the rest architecture.

The solution is to create a token cookie on the front-end side after a successful authentication and to create a filter that will initialize spring security with the right user if the cookie is found.

Dist folder management

Hi Julien,

First of all, thanks for the new release, it works really smoothly.

Now, when I package the app, the dist folder is created under /src/main/webapp. This creates the following side effects:
. After packaging the app, I need to manually remove the folder from my source code.
. The generated war has all the static content in the root folder + the optimised (minimised, contatenated, etc) files under /dist folder. This increases the size of the war and duplicate the files.
. It would be good if StaticResourcesProductionFilter point to a different folder name like /static.

Thanks,
Jorge

HazelCast starting twice

When you select HazelCast for Hibernate caching AND HTTP session clustering, HazelCast gets started twice.
It even does a cluster between those two instances.
cc @jmirc

Move to Spring 4.0

Now that Spring 4.0 is final, remove the option to use Spring 3.2 and have Spring 4.0 only.

improve spring security disconnection

We should redirect the user to the authentification page or the index page as soon as we get a 401 response. I don't know how it can be done using angular, maybe overriding the $resource service ?
Any idea ?

Make Grunt work correctly

We want to do "grunt server" and have Grunt serve HTML files, with Sass compilation.

Basic usage, only with static files:
Use the Grunt proxy so accessing http://localhost:9000 allows to use the "index.html" file served by Grunt, which can use the REST backend (served by "mvn jetty:run" on localhost:8080)

Advanced usage with Thymeleaf:
Same idea as above, you can access Thymeleaf templates with "grunt server", as a static file. But you can also see the dynamic version if you go to localhost:8080 (without any livereload, of course).

Implement interface in the service layer

Is it possible to create interfaces for each @service class. I understand that Spring will proxy the class anyway, however if the service has an interface, it will use dynamic proxy which seems to be better than CGLIB. Although, I suppose you understand what I'm talking about, the link below provide more details.

http://docs.spring.io/spring/docs/3.0.0.M3/reference/html/ch08s06.html

From my point of view, this should be categorised as an enhancement.

Thanks,
Jorge

Add sub-generators

Like in this example from generator-angular:

https://github.com/yeoman/generator-angular#controller

However, the idea with JHipster would be to create an entity, for exemple "user":

yo jhipster:entity user

This would create:

  • The JPA entity and repository
  • The Spring MVC REST controller (CRUD)
  • The AngularJS service and controllers
  • The HTML view

"grunt build" does not work correctly

Doing a "grunt build" does not work as expected:

  • The generated files in "dist" do no work: when opening dist/index.html there is an Angular JS error "Error: [$injector:unpr] Unknown provider: a". It looks like one of the JS was not minified correctly
  • Those files are not places in the generated WAR file (see also issue #28 ) -> at the moment this is a good thing, because of the previous error, but in the end those files should be in the WAR file, instead of the development files

LazyInitializationException on REST services

Hi All,

Checking the code, I realised that REST services can throw LazyInitializationException when the code is trying to access a relationship. The transaction has been completed but the code is accessing a lazy relationship which requires a transaction.

To replicate the issue, in web.rest.AccountResource.getAccount(HttpServletResponse) I added the following line:

log.debug("User authorities size: " + user.getAuthorities().size());

Then, I logged in the app and in the log I saw the following exception:

[ERROR] ar.com.tunuyan.conf.DispatcherServletConfiguration - An error has occured: failed to lazily initialize a collection of role: ar.com.tunuyan.domain.User.authorities, could not initialize proxy - no Session
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: ar.com.tunuyan.domain.User.authorities, could not initialize proxy - no Session
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:566)
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:186)
at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:137)
at org.hibernate.collection.internal.PersistentSet.size(PersistentSet.java:156)
at ar.com.tunuyan.web.rest.AccountResource.getAccount(AccountResource.java:53)

Evaluate HazelCast instead of Ehcache

Evaluate HazelCast as a replacement for Ehcache:

https://github.com/hazelcast/hazelcast/

PROs:

  • Ehcache isn't actively developped anymore (as told by the Software AG sales rep)
  • Looks easier to have a distributed cache
  • Only way to have HTTP session clustering, without a dependancy on the app server
  • Cluster affinity & distributed execution queue -> does it work well with the @scheduled annotations from Spring?

CONs:

  • Last time I tried to use it, it didn't work with Hibernate 4 (not implemented yet!)
  • Far less popular than Ehcache, and one of our aims is to have a project using "commonly used" technologies

Maybe this could be a new question in the Yeoman script? For instance:

  • Do you want to use a cache?
  1. No
  2. Yes, with ehcache (simple Hibernate 2nd level cache, no clustering)
  3. Yes, with HazelCast (distributed Hibernate 2nd level cache and distributed HTTP sessions)

add email support

Woud be nice to have email support out of the box :

  • templating
  • asynch service to send email to/from an email/user
  • add email example for "password lost"

Should we use Thymeleaf here ?

http-auth-interceptor does not work correctly

Sorry Jérôme, but I've spent the whole evening trying to make http-auth-interceptor work and I have two issues:

  • When I run with the "prod" profile, the JavaScript compression corrupts the file. It's probably the same thing as the other AngularJS files, but I can't find where the problem is -> just try a "mvn jetty:run -Pprod" and you'll see the issue
  • When the user enters a wrong login, we do not have an error message anymore, as the "error" callback is not used anymore

I'm keeping it at the moment, but this can't go to the next release: can you have a look at it? Otherwise I'll disable it when I do the next release, and then I'll try to put it back.

Suppress Jetty and use Tomcat7 in all examples

As discussed in #64 let's remove all references to Jetty in favor of Tomcat7:

  • In the Maven pom.xml
  • In the documentation

The generated application should still work with Jetty, as it should be a standard WAR file. It's just to have a more consistant documentation and overall experience.

Check Sonar reports

Goal is 0% violation with the default Sonar rules, 100% coverage, and 0 dependancy tangle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.