- A high-performance and robust Java stack on the server side with Spring Boot
- A sleek, modern, mobile-first front-end with AngularJS and Bootstrap
- A powerful workflow to build your application with Yeoman, Bower, Grunt and Maven
Technology stack on the client side
Single Web page application:
- Responsive Web Design
- HTML5 Boilerplate
- Twitter Bootstrap
- Compatible with IE9+ and modern browsers
- Full internationalization support with Angular Translate
- Optional Sass support for CSS design
- Optional WebSocket support with Spring Websocket
With the great Yeoman development workflow:
- Build, optimization and live reload with Grunt or Gulp.js
- Testing with Karma and PhantomJS
And what if a single Web page application isn’t enough for your needs?
- Support for the Thymeleaf template engine, to generate Web pages on the server side
Technology stack on the server side
A complete Spring application:
- Spring Boot for easy application configuration
- Maven or Gradle configuration for building, testing and running the application
- “development” and “production” profiles (both for Maven and Gradle)
- Spring Security
- Spring MVC REST + Jackson
- Optional WebSocket support with Spring Websocket
- Spring Data JPA + Bean Validation
- Database updates with Liquibase
- Elasticsearch support if you want to have search capabilities on top of your database
- MongoDB support if you’d rather use a document-oriented NoSQL database instead of JPA
- Cassandra support if you’d rather use a column-oriented NoSQL database instead of JPA
Ready to go into production:
- Monitoring with Metrics
- Caching with ehcache (local cache) or hazelcast (distributed cache)
- Optional HTTP session clustering with hazelcast
- Optimized static resources (gzip filter, HTTP cache headers)
- Log management with Logback, configurable at runtime
- Connection pooling with HikariCP for optimum performance
- Builds a standard WAR file or an executable JAR file
- Install Java from the Oracle website.
- (Optional) Install a Java build tool.
- Install Git from git-scm.com. We recommend you also use a tool like SourceTree if you are starting with Git.
- Install Node.js from the Node.js website. This will also install
npm, which is the node package manager we are using in the next commands.
- Install Yeoman:
npm install -g yo
- Install Bower:
npm install -g bower
- Depending on your preferences, install either Grunt (recommended) with
npm install -g grunt-clior Gulp.js with
npm install -g gulp.
- Install JHipster:
npm install -g generator-jhipster
- First of all, create an empty directory in which you will create your application:
Go to that directory:
To generate your application, type:
And answer the questions asked by the generator to create an application taylored to your needs. Those options are described in the next section.
Once the application is generated, you can launch the Java server within your IDE, by running the Application class at the root of your application’s Java package.
As it is a simple “Main” class, it is the easiest and quickest way to run and debug the application.
If you prefer to use Maven, you can also run your application by typing:
(this will run our default Maven task,
The application will be available on http://localhost:8080
- ConfigurationBy default, JHipster uses the “development” profile, so you don’t have to configure anything.
If you want more information on the available profiles, please go the section titled “Profiles“.
Running the application
As a “main” Java class
From your IDE, right-click on the “Application” class at the root of your Java package hierarchy, and run it directly. You should also be able to debug it as easily.
The application will be available on http://localhost:8080.
- Using the Java server and Grunt togetherWe highly recommend you use this feature, as it allows to have live reloading of your client-side code.
(this will run our default Grunt task,
This provides two very impressive features:
- When you test your application on several different browsers or devices, all your clicks/scrolls/inputs should be automatically synchronized on all screens
This Grunt task has a proxy to the REST endpoints on the Java server which we just launched (on http://localhost:8080/api), so it should be able to do live REST requests to the Java back-end.
If you have generated your application with the Sass option, your templates should also be automatically compiled into CSS.
- In some browsers (like Chrome), your HTML/CSS/JS resources can be cached, and hence can have some trouble getting live-reloaded. To force them to be reloaded, open up the “developer console” and select “Disable cache (while DevTools is open)”.
- As the Grunt server proxies request to the Java server, all REST requests will fail if the Java server is down. So if your Grunt server shows a blank screen, the first thing to check is if the Java server is running at
If you want more information on using Grunt, please go to http://gruntjs.com.
bower install <package> --save
src/main/webapp/bower_componentsfolder, and we believe it is a good idea to store them in your Git repository (but JHipster does not force you to do so).
karma.conf.jsfiles. Likewise the CSS files will be injected into the
index.htmlfile, and the SCSS files into the
However this will only work if the Grunt server is running. If it is not running they will be injected next time you run
Or, if you want to trigger the injection manually, just run:
Configuring your IDE Source: jhipster.github.io/configuring-ide-idea/
Creating an application Source: jhipster.github.io/creating-an-app/
JHipster – A hipster stack for Java developers
Hipster stack for Java developers. Yeoman + Maven + Spring + AngularJS in one handy generator.
- JHipster is Open Source, and all development is done onGitHub
Screenshots of the generated application