preface
Why do you want to talk about Jhipster? I have used Jhipster for nearly half a year, tell me some feelings.
Why Jhipster? The Leader let me use it. I was really not used to using it at the beginning. A lot of files and many dependencies were generated, and I didn’t know what it was. I can’t help it. I am not the Leader, so IT is not up to me to decide the technology selection. I have to use it if I am not used to it. Now let’s talk about Jhipster, you can go to the official website.
Some bloggers speak of this or very good, such as: zhuanlan.zhihu.com/c_100829618…
Jhipster’s website: www.jhipster.tech/
Before we get to know JHipster, let’s make a few mistakes:
JHipster is not a frame, but a Boilerplate. The Boilerplate integrates a variety of current leading technologies, frameworks, tools, architectures, code specifications, development processes, and best practices on the front and back ends. Of course, JHipster has its own innovations, such as JDL.
2. JHipster is ideal for creating new enterprise-level applications. In versions 4 and earlier, Hibernate is supported on the server side and Angularjs/Angular is supported on the front end, making it more suitable for enterprise applications. And because of the prototype generated from JDL, JHipster is not suitable for the existing database table structure of the system, especially the original database design is very unreasonable (non-standard naming, unreasonable table structure, primary and foreign key constraints are not strict).
3. If Spring Boot brings changes to Java server, it makes project configuration and construction more convenient. So JHipster is a full stack Boot across the front and back ends.
introduce
A Jhipster is a Java hipster. A Jhipster is a Java hipster. Yes, the tech stack she’s involved in is really up to date.
So what is her definition? JHipster is a development platform for rapidly generating, developing, and deploying modern Web applications + microservices architectures.
Quick start
1. Install Java, Git, and Node.js
JHipster NPM install -g generator-jhipster
3, create a new directory and go to mkdir myApp && CD myApp
4. Run Jhipster and follow the on-screen instructions to operate Jhipster
5. After designing your entity classes with JDL Studio, download the JHipster-jDL-jh file
Jhipster JDL jhipster-jdL.jh
1.What is the base name of your application? (What is the base name of your application?) This is the name of your application.2. What is your default Java packagename? (What is your default Java package name?) Your Java application will use this as the root name of the package.3.Do you want to use the JHipster Registry to configure, monitor and scale your application? JHipster Registry is an open source tool for managing your running applications. Don't choose.4.Which type of authentication would you like to use? Select an authentication mode, such as JWT or OAuth2.0, HTTP sessions, etc.5.Which type of database would you like to use? Select the database type, provided SQL, NOSQL, for you to choose.6.Which production database would you like to use? Which production database do you want to use7.Which development database would you like to use? Which development database will you use? Generally choose the h2 - disk8.Do you want to use the Spring cache abstraction? Do you want to use Spring abstract caching?9.Would you like to use Maven or Gradle? Do you want to use Maven or Gradle?10.Which other technologies would you like to use? What other technologies would you like to use? Choose according to your needs11. Which Framework would you like to use forthe client? Which framework do you want to use for the front end? The options given are Angular, React, vue12.Would you like to use a Bootswatch theme? Choose the front end you want to use.13. Would you like to use the Sass stylesheet preprocessor foryour CSS? Do you want to use the Sass style sheet preprocessor for CSS?14.Which testing frameworks would you like to use? Which testing frameworks do you want to use? Options are Gatling, Cucumber, etc.15.Would you like to install other generators from the JHipster Marketplace? Do you want to install additional generators from the JHipster marketplace? Just choose no.Copy the code
The resulting structure directory looks like this:
Video tutorial
Start at 0 and create a Spring Boot + Angular/React application in 5 minutes
conclusion
It doesn’t make much sense to write a lot of glue code when we’ve written a lot of code. There are tools we can use to help us produce code. Free up our hands, free up our time, or just be lazy, why not? As we free up more time, we can devote more time to design and focus on other aspects. In fact, the code jHipster writes is still ok, simple CRUD applications are perfectly fine, he generates the same as if he wrote it himself.
I have always said, engaged in software development, we just need to keep learning, interested can try to use, or very good, specific how to step by step operation, online tutorials are many, not interested in can directly skip. If you are engaged in Java development, I recommend you to learn it.