jhipster创建项目问答汇总_[恭喜JHipster社区喜提 VueJS !]
生活随笔
收集整理的這篇文章主要介紹了
jhipster创建项目问答汇总_[恭喜JHipster社区喜提 VueJS !]
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在中國的狗年農(nóng)歷臘月廿三 也就是我國過小年的時(shí)候, Twitter上傳來喜訊 jhipster-vuejs 團(tuán)隊(duì)在NPM上發(fā)布了 我們偏Vue系全棧程序員 "翹臀以盼" 的 JHipster × Vue.js Beta版 1.0 !
Twitter原文地址:
1月28日?twitter.com原先的 JH-Vue 只有 Blueprint版 , 如今第一次發(fā)布 開箱即用的Beta版, 俺接下來先來給猿們嘗嘗鮮 ; )
0.安裝JHipster (需要先安裝Node.js&Npm)
$ npm install -g generator-jhipster 陳龍:從0開始,5分鐘創(chuàng)建一個(gè)Spring Boot + Angular/React應(yīng)用?zhuanlan.zhihu.com1. 全局安裝JH-VuejsNPM包(latest版已出)
$ npm install -g generator-jhipster-vuejs2. 將JH-Vuejs 模塊符號鏈接至當(dāng)前項(xiàng)目的依賴中 (ps:用管理員權(quán)限cmd運(yùn)行)
$ npm link generator-jhipster-vuejs3. 按需生成JH-Vuejs前后端分離項(xiàng)目 (ps:用管理員權(quán)限cmd運(yùn)行)
$ jhipster -d --blueprints vuejs # 根據(jù)下列 > 標(biāo)識選項(xiàng)即可創(chuàng)建INFO! Using JHipster version installed globally
INFO! Debug logging is on
DEBUG! No command specified. Running default
INFO! Running default command
DEBUG! cmd: app
DEBUG! args:
DEBUG! opts:
DEBUG! cmdArgs:
INFO! Executing jhipster:app
INFO! Options: d: true, blueprint: vuejs, from-cli: true██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝https://www.jhipster.techWelcome to JHipster v5.7.2
Application files will be generated in folder: D:ALocal_toolDepotsRunCodeDepotJHipster-Vue.js_______________________________________________________________________________________________________________Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/If you find JHipster useful, consider sponsoring the project at https://opencollective.com/generator-jhipster_______________________________________________________________________________________________________________WARNING! Java 1.8 is not found on your computer. Your Java version is: 9______________________________________________________________________________JHipster update available: 5.8.1 (current: 5.7.2)Run npm install -g generator-jhipster to update.______________________________________________________________________________
? (1/18) Which *type* of application would you like to create? (Use arrow keys) //選擇創(chuàng)建的應(yīng)用類型
> Monolithic application (recommended for simple projects) //綜合應(yīng)用Microservice application //微服務(wù)應(yīng)用Microservice gateway //微服務(wù)網(wǎng)關(guān)[BETA] JHipster UAA server (for microservice OAuth2 authentication) //微服務(wù)OAuth2的身份認(rèn)證服務(wù)? (2/18) What is the base name of your application? 例: (vuedemo) //項(xiàng)目名稱? (3/18) What is your default Java package name? 例: (com.jh.vue) //默認(rèn)生成包名// jhipster registry是一個(gè)基于spring cloud的配置中心。所有的微服務(wù)APP都需要注冊到這里,集成了eureka
? (4/18) Do you want to use the JHipster Registry to configure, monitor and scale your application?No? (5/18) Which *type* of authentication would you like to use? (Use arrow keys) //選擇認(rèn)證方式
> JWT authentication (stateless, with a token) //J(son)W(eb)T(oken)(無狀態(tài))HTTP Session Authentication (stateful, default Spring Security mechanism) //Spring Security默認(rèn)機(jī)制 基于HTTP會話的認(rèn)證方式(帶狀態(tài))OAuth2 Authentication (stateless, with an OAuth2 server implementation) //OAuth2的認(rèn)證實(shí)現(xiàn)(無狀態(tài))? (6/18) Which *type* of database would you like to use? (Use arrow keys) //選擇數(shù)據(jù)庫類型
> SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle) //關(guān)系型數(shù)據(jù)庫MongoDB //NoSQLCassandra //NoSQL? (7/18) Which *production* database would you like to use? (Use arrow keys) //生產(chǎn)數(shù)據(jù)庫
> MySQLMariaDBPostgreSQLOracle - Warning! The Oracle JDBC driver (ojdbc) is not bundled because it is not Open Source. Please follow our documentation to instal l it manually.Microsoft SQL Server? (8/18) Which *development* database would you like to use? (Use arrow keys) //開發(fā)數(shù)據(jù)庫
> H2 with disk-based persistence //數(shù)據(jù)存儲在磁盤的H2H2 with in-memory persistence //內(nèi)存H2(服務(wù)關(guān)閉數(shù)據(jù)丟失)MySQL? (9/18) Do you want to use the Spring cache abstraction? // 根據(jù)需求選擇緩存
> Yes, with the Ehcache implementation (local cache, for a single node) // 本地緩存方案 ehcacheYes, with the Hazelcast implementation (distributed cache, for multiple nodes) // 集群緩存方案,多節(jié)點(diǎn)緩存,適合多微服務(wù)的分布式環(huán)境[BETA] Yes, with the Infinispan implementation (hybrid cache, for multiple nodes) Yes, with Memcached (distributed cache) - Warning, when using an SQL database, this will disable the Hibernate 2nd lev
el cache! // memcached(分布式緩存)No - Warning, when using an SQL database, this will disable the Hibernate 2nd level cache! // 不使用緩存? (10/18) Do you want to use Hibernate 2nd level cache? (Use arrow keys) (Y/n)//Hibernate 二級緩存Yes ? (11/18) Would you like to use Maven or Gradle for building the backend? (Use arrow keys) //選擇后臺構(gòu)建系統(tǒng)
> Maven //更成熟,穩(wěn)定,用戶群體更大Gradle //更靈活,易于擴(kuò)展,支持maven一鍵轉(zhuǎn)Gradle? (12/18) Which other technologies would you like to use? (Press <space> to select) //可選技術(shù)(此選項(xiàng)可為空,當(dāng)前選擇為空)( ) Search engine using ElasticSearch //集成搜索開源搜索引擎 ElasticSearch( ) Clustered HTTP sessions using Hazelcast //使用Hazelcast管理http session集群( ) WebSockets using Spring Websocket //使用Spring Websocket( ) [BETA] Asynchronous messages using Apache Kafka //Apache Kafka 是一種高吞吐量的分布式發(fā)布訂閱消息系統(tǒng)? (13/18) Which *Framework* would you like to use for the client? // 選擇前端框架, 當(dāng)前 VueBeta版只能選擇Vuejs
> Vue.js? (14/18) Would you like to enable internationalization support? (Y/n) //是否使用國際化Yes? (15/18)Please choose the native language of the application? (Use arrow keys) //選擇本地化語言Catalan
>Chinese (Simplified) //中文簡體Chinese (Traditional)CzechDanishDutchEnglish
(Move up and down to reveal more choices)? (16/18)Please choose additional languages to install (Press <space> to select)//選擇其余支持語言(空格選中)
>( ) Catalan( ) Chinese (Traditional)( ) Czech( ) Danish( ) Dutch(*) English( ) French
(Move up and down to reveal more choices)? (17/18) Besides JUnit and Jest, which testing frameworks would you like to use? (Press <space> to select, <a> to toggle all, <
i> to invert selection) // 選擇測試框架,針對微服務(wù)http接口測試,生成測試報(bào)告(暫不需要)( ) Gatling( ) Cucumber( ) Protractor? (18/18) Would you like to install other generators from the JHipster Marketplace? (Y/N)// //從JHipster Marketplace 安裝其他生成器
NoInstalling languages: zh-cn, enKeyStore 'src/main/resources/config/tls/keystore.p12' generated successfully.Unable to find src/main/webapp//app/config/translation.ts or missing required jhipster-needle. Language pipe not updated with languages: zh-cn,ca since block was not found. Check if you have enabled translation support.create .prettierrccreate .prettierignorecreate srcmainjibentrypoint.shcreate srcmaindockerDockerfilecreate srcmaindockerentrypoint.shcreate srcmaindocker.dockerignorecreate srcmaindockerapp.ymlcreate srcmaindockersonar.yml .........該GitBook地址提供創(chuàng)建多種業(yè)務(wù)場景下的通用模板應(yīng)用 !
創(chuàng)建應(yīng)用 · jhipster開發(fā)筆記?jh.jiankangsn.com4. 導(dǎo)入依賴 (ps:用管理員權(quán)限cmd運(yùn)行)
npm run webpack:build
5. 啟動項(xiàng)目
關(guān)于了解更多JH相關(guān)知識請關(guān)注本專欄
JHipster?zhuanlan.zhihu.com總結(jié)
以上是生活随笔為你收集整理的jhipster创建项目问答汇总_[恭喜JHipster社区喜提 VueJS !]的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《病中得樊大书》是哪个时期的作品?
- 下一篇: indesign图片规定在左下角_详解I