Jhipster 3.4 The simplest introductory basic tutorial for creating the most popular Java Web application project __java

Source: Internet
Author: User
Tags deprecated generator java web

Turn from: http://www.cnblogs.com/sam8881-Blogs/p/5630976.html

Learning (Java Web) programming technology key points and direction to complete the project

Jhipster (J-Chao) its highlights: Super strength, sweeping Europe and the United States, the latest Universal Java Web Development Program generator (Java Web Generator). The development experience accumulated by Java experts, with all kinds of practical framework technology, to multiply the use of fine, a full range of configuration, made a complete development of the application program. Perfect Java architecture for all walks of life projects, especially for service Oriented architecture (SOA). Whether you're a rookie, an old cow or an expert, it's easy to get started, as long as you can download and create the following requirements for the work environment. Quickly build a production-ready basic project Work template that allows you to focus on business operations with limited energy. Examples of production include: Jhipster3.4+spring4.2.6+spring boot1.3.5+hibernate4.3.11+mysql5.7.12+angularjs1.5.5

Opening

In the last two or three years (2013-2016), the field of Java development has been blowing a hot wind. Cause Java developers all over the world to follow in droves. This is the Java Tide passenger (J Chao), called Jhipster. According to experts, the monthly download amount is about 12000, and the number of J-tide guest applications made in each month is 10,000. Unfortunately, the information on J-Tidal passengers and their applications in China are very rare, so this article provides some useful and effective information. Java enthusiasts can learn and study together. If all goes well, whether you're a rookie or not, just follow the steps provided in this article for 20-30 minutes (excluding the installation work environment), which equals a 5-7-year Java Experience Program employee who made the 6-week result: a sophisticated and advanced, with Java Web technology trends, At the same time with the production of the basic work template. This is the jhipster selling point of J-tide.

As early as more than 10 years ago at the Dow Jones headquarters, often contact with the entity or virtual Java network server and application server, its operation is very complex and time-consuming. Even today's Java Web technology, a wide variety of features. For example, Java Framework technology has STRUTS,SPRING,HIBERNATE,IBATIS,EJB3.0,JPA, and so on; there are a number of client technologies, Javascript, JQuery, Easyui, Angularjs, Velocity ; The database has SQL and NoSQL, and this article is just a partial example. A lot of choices are not easy to apply. Last year I wanted to find out more about the application of the Spring Framework 4, all over Hong Kong's Guangzhou and Shenzhen bookstores, and still returned empty-handed. The reason is that the technology update is too fast, some of the information just published is already an old version. The technology is good, what clients to use, what kind of database most applicable, I believe there are a lot of controversy. The theme of this article is that no matter novice veteran, just take a good grasp of the current Java Web technology trends, the allocation of their limited energy, create a wonderful Java project. About the application of the J-Chao, will be more than a few years and you study together, please readers attention to.

Introduction J-Tide Guest

J Jhipster is something. Who started it. In fact, the J-Tide is open source technology, in 2013 by the French Java experts Julien Dubois (Julian do Pors) pioneered the initiative, is still a J-Tide guest project leader. Easy to say. It is a toolkit-heap technology, meaning a Java web Developer generator that is configured with a variety of technical tools. The benefits are the cumulative development experience of Java experts, equipped with a variety of practical framework technology, to multiply the use of fine, a full range of configuration, made a complete development application, absolutely applicable to service-oriented architecture (SOA).

J-Boomers include the most advanced Java 8, featuring multiple annotations, without the configuration of XML configurations, equipped with a full range of working environments, from development, testing, monitoring to making, and cloud deployment. can provide the most advanced Java technology such as micro-service integrated Technology (MICROSERVICES).

The main technology has the following several, simply introduced. If you want to know more about this information, you can ask Baidu. Spring Boot: A standalone spring application Spring Security: The standard industry's licensing and certification angularjs:javascript MVC Framework Client Bootstrap: From Twitter, is currently the most popular former End Frame REST APIs: Implementing Resource operations based on HTTP protocol liquid database: source code version control CSS3 + animation HTML5: Mobile Development LED (Mobil-a) full internationalization s Upport: Support for the perfect international text Web Socket: Allows users to achieve two-way communication in the browser, to achieve timely data push embedded Tomcat, jetty and Undertow

Create Project Tools Technology Select multiple Autoconfiguration Dependent resources: Maven or Gradle Authentication type: Cookie type, JWT and OAuth2 database: SQL and NOSQL (MySQL, Postgres, H2) cache: EhCache or Hazelcast Automated Repetitive tasks: Live editing: GULP and Grunt tools: Yeoman, NPM (Nodejs), Browsersync

Install J-Tide (Jhipster)

The establishment of J-Tidal (Jhipster) working environment is required and needs to be equipped with: Java 8 SDK Maven or Gradle nodejs phantomjs Xcode (iOS) MySQL or Postgres (MySQL Workbench or pgAdmin3) Git version control STS IDE, Eclipse, IntelliJ idea, one of

Detailed installation methods, more online. The development environment must be tested and the software tools run safely with the latest version.

(for installation of open source tools-j, for the cabbage, may be a challenge, because it is relatively short history, no specific processing steps to provide, so this article specially added very specific detailed installation steps shown. To match the installation successfully. )

Install J Tide Guest have a variety of, this article only recommended the local installation method, the basic can be divided into Windows 8 and 10; iOS and Linux. Windows 8 and 10: Install with Administrator rights (sudo) using terminal Terminal with Administrator rights to command prompt (cmd) iOS and Linux

Installation method:

 Installation yeoman:npm install-g yo

 Installation bower:npm install-g Bower

 Installation gulp:npm install-g Gulp

 Installation jhipster:npm install-g generator-jhipster

Bold is the input command (iOS):

sudo npm install-g yo

The following display appears in the Terminal Terminal: (your may not be exactly the same, probably the same)

。。。

/usr/local/bin/yo->/usr/local/lib/node_modules/yo/lib/cli.js

> yo@1.8.4 postinstall/usr/local/lib/node_modules/yo

> Yodoctor

Yeoman Doctor

Running sanity checks on your system

✔global configuration file is valid

✔node_path matches the NPM root

✔node.js version

✔no. bowerrc file in home directory

✔no. yo-rc.json file in home directory

✔NPM version

Everything looks all right!

/usr/local/lib

└──yo@1.8.4

sudo npm install-g Bower

/usr/local/bin/bower->/usr/local/lib/node_modules/bower/bin/bower

/usr/local/lib

└──bower@1.7.9

sudo npm install-g Gulp

NPM WARN deprecated Graceful-fs@3.0.8:graceful-fs v3.0.0 and before'll fail on node releases >=. Please update to graceful-fs@^4.0.0 as soon as possible. Use ' npm ls graceful-fs ' to find it in the tree.

NPM WARN deprecated lodash@1.0.2:lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.

NPM WARN deprecated Graceful-fs@1.2.3:graceful-fs v3.0.0 and before'll fail on node releases >=. Please update to graceful-fs@^4.0.0 as soon as possible. Use ' npm ls graceful-fs ' to find it in the tree.

/usr/local/bin/gulp->/usr/local/lib/node_modules/gulp/bin/gulp.js

/usr/local/lib

└─┬gulp@3.9.1

└─┬gulp-util@3.0.7

└─┬dateformat@1.0.12

└─┬meow@3.7.0

└─┬loud-rejection@1.4.1

└──currently-unhandled@0.4.1

sudo npm install-g generator-jhipster

NPM WARN deprecated Cross-spawn-async@2.2.4:cross-spawn no longer requires a build toolchain with use it instead!

NPM WARN deprecated Npmconf@2.1.2:this package has been reintegrated into NPM and are now out of the date with respect to NPM

/usr/local/lib

└──generator-jhipster@3.4.0

Note: The biggest problem with installation is that the network is smooth, because most of the resources are in foreign countries, you know.

In iOS and Linux, installation often encountered an equity issue, can be handled with administrator rights.

Install the above software, each version is as follows:

yo@1.8.4

bower@1.7.9

gulp@3.9.1

generator-jhipster@3.4.0

npm@3.9.2

The next step is of course to build the application template for J-Tidal. The example in this article is to create an application template called Kenlen.

Open a terminal terminal or CMD, install with administrator rights, select the disk to install, and enter the following instructions:

mkdir KENLENÈCD kenlenèyo Jhipster

(The following is shown on the screen)

Welcome to the Jhipster generator v3.4.0

Application files would be generated in folder:/users/emac/kenlen

? (1/16) Which *type* of application would you like to create? Monolithic application (recommended for simple projects)

? (2/16) What is the base name of your application? Kenlen

? (3/16) What is your default Java package name? Com.emodak.kenlen

? (4/16) Which *type* of authentication would HTTP Session authentication (stateful, default Spring security mechanism)

? (5/16) Do your want to use social login (Google, Facebook, Twitter)? Warning, this doesn ' t work with cassandra! No

? (6/16) Which *type* of database would SQL (H2, MySQL, mariadb, PostgreSQL, Oracle)

? (7/16) Which *production* database would. Mysql

?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.