Jhipsperの紹介

4060 ワード

一、Jhipsper紹介
大神語録:コード生成器の一つで、コアはSpring Boot、springです。Spring Boot+Anglar/React/Vue WebアプリケーションとSpringマイクロサービスを生成、開発、展開します。
二、最初のjhipsterアプリケーションを作成する。
1.準備作業
JDKをインストールして、バージョン(初めて使うのは1.8です。環境変数を配置する必要があります。)を注意してデータベースをインストールします。(私がインストールしたのはmysqlです。)Mavenインストールgitはnode.jsをインストールしてYeomanをインストールします。
npm install -g yo
インストール
npm install -g bower
グランドを取り付ける
npm install -g grunt-cli
jhipsterをインストールする
npm install -g generator-jhipster
2.jhipsperアプリケーションの作成を開始する
コマンドラインのウィンドウを開き、作成する項目に対応する空のフォルダに入ります。コマンドを入力:
> yo jhipster
続いてインタラクティブクイズが発生し、開発者の要求に従ってコードを生成し、アプリケーションの機能を実現する。
What is the base name of your application?#       ,     testjhipster。  。
testjhipster
What is your default Java package name?#      java    。   :com.mytest.testjhipster。  
com.mytest.testjhipster
Which type of authentication would you like to use?#         。       ,   ,        ,       。  。
Which type of database would you like to use?#          ?     :SQL、MongoDB、Cassandra。MongoDB           ,Cassandra      NoSQL     。              SQL。  。
Which production database would you like to use?#            ?       MySQL。  。           src/main/resources/config/application-prod.yml      。
which development database would you like to use?#          ?       ,'H2 with disk-based persistence'、'H2 with in-memory persistence' 'MySQL',               ,      ,      。             ,        ,     window     。       MySQL。            src/main/resources/config/application-dev.yml  。  。
Do you want to use Hibernate 2nd level cache?#      Hibernate    ?      ,        ,      NO。  。
Do you want to use a search engine in your application?#            。            jhipster     。       No。  。
Do you want to use clustered HTTP sessions?#      HTTP  ,  ,   ,     NO。  。
Do you want to use WebSocket?    websocket?#   websocket      。       No。  。
Would you like to use Maven or Gradle for building the backend?#  Maven  Gradle。       Maven。  
Would you like to use Grunt or Gulp.js for building the frontend?#     Grunt。  。
Would you like to use the LibSass stylesheet preprocessor for your css?#    LibSass  css      。    NO。  
Would you like to enable translation support with Angular Translate?#    Anjular       ?    No。  。
Which testing frameworks would you like to use?#       。      ,    。
質問の答えが終わったら、待ってください。終了するまで、基本的なjhipsperプロジェクトtestjhipspterが作成されました。