The last years I mainly worked on the frontend part of web & mobile applications but I also did some minor backend work. Since mid of this year, I am working to improve my backend knowledge and started to focus on Java backend development using Spring Boot.
In this article, I will tell you why I love JHipster and how you can quickly start a JHipster project.
JHipster is a development platform to generate, develop and deploy Spring Boot + Angular / React / Vue Web applications and Spring microservices.
Basically, it is a Yeoman generator which creates applications that include Spring Boot, Bootstrap and Angular (or React or Vue).
Julien Dubois started the project in 2013 and is available on GitHub.
If you like to see JHipster in action, I can recommend the following screencast from Matt Raible:
In my opinion, JHipster is amazing as it
Then we can install JHipster as global npm package:
npm install -g generator-jhipster
Now we can create a new project and get started:
The first step, is to create a new directory and go into it
mkdir jhipster-demo && cd jhipster-demo
Now we can run
jhipster which starts the generator
with the following selections:
I chose a monolithic application as a microservice architecture would be an overkill for a simple demo project. Besides that, I selected Angular as frontend framework with i18n support and some backend configuration for database, caching and monitoring.
Next step is to model our entities with JDL Studio and download the resulting
After downloading the
.jh file we can now generate the entities with
jhipster import-jdl jhipster-jdl.jh. In our example, we just import the default JDL Studio file which is also shown in the picture above.
./mvnw which starts the Spring Boot application:
npm start which starts the Angular application which is then accessible on
Finally, we can log in and see some of the out-of-the-box features like the possibility to see and edit our entities,
view metrics of the application
and a user management
In this article, I just showed you a quick start project and mentioned some of the advantages of it. JHipster is much more powerful as you can see in the official documentation. In my opinion, it is also a good sign if large companies are using the framework, as you can see in this official list.
A disadvantage of JHipster is that you do not have a typical Angular CLI project. Angular CLI is included in JHipster but the project structure looks different than the one of a default Angular CLI project.
Additionally, JHipster generates a lot of code which includes many libraries which you maybe do not know some of them. You can just add or modify the code without learning the fundamentals behind these libraries but this could lead to some future problems.
You should also keep in mind that a JHipster project is more of a big start than a small, lean project start.
We are a leading niche digital & tech recruitment specialist for the North East of England. We Specialise in the acquisition of high-performing technology talent across a variety of IT sectors including Digital & Technology Software Development.
Our ultimate goal is to make a positive impact on every client and candidate we serve - from the initial call and introduction, right up to the final delivery, we want our clients and candidates to feel they have had a beneficial and productive experience.
If you’re looking to start your journey in sourcing talent or find your dream job, you’ll need a passionate, motivated team of experts to guide you. Check out our Jobs page for open vacancies. If interested, contact us or call 0191 620 0123 for a quick chat with our team.
Back to Blog