依賴環(huán)境
- Java 8 SDK
- nodeJs
- Git 版本控制
jdk
jHipster 需要使用jdk 8 版本
JDK下載地址
nodeJs
nodejs.org 官方網(wǎng)站
v4.4.4 (WINDOWS) 下載
v6.2.0 (WINDOWS) 下載
下載上述任意安裝包恳啥,根據(jù)提示逐步安裝丹诀。
安裝好之后我們就可以使用nodejs安裝其他的依賴包了。
由于nodejs默認(rèn)文件源在國(guó)外硝桩,直接使用npm安裝依賴包的速度會(huì)很慢枚荣。
此處建議使用淘寶的源替換棍弄。
打開命令行
npm config set registry https://registry.npm.taobao.org
這時(shí)候nodejs就安裝成功了
安裝GIT
windows版本下載地址 https://git-for-windows.github.io/
# ubuntu系統(tǒng)安裝方式
apt-get install git
# centos系統(tǒng)安裝方式
yum install git
安裝jHipster
npm install -g yo bower gulp-cli
安裝jhipster
npm install -g generator-jhipster
以下是執(zhí)行npm安裝過程中出現(xiàn)的提示呼畸,大同小異
/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
/usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
/usr/local/lib
└── bower@1.7.9
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. 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 will fail on node releases >= v7.0. 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
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/usr/local/lib
└── generator-jhipster@3.4.0
以上就是整個(gè)jHipster安裝過程所需要涉及到的操作(省略了一些常用軟件jdk,nodejs的安裝步驟蛮原,相信大家很容易在百度上搜索到)
-
Yo是一個(gè) Web應(yīng)用的架構(gòu)(scaffolding)工具。它提供了非常多的模板花嘶,用來生成不同類型的 Web 應(yīng)用。 ?
-
Bower 是一個(gè)前端庫(kù)管理工具车海,可以很好的解決在 Web 應(yīng)用中引用第三方庫(kù)時(shí)可能遇到的問題隘击。 ?
-
gulp是基于Nodejs的自動(dòng)任務(wù)運(yùn)行器, 她能自動(dòng)化地完成 javascript/coffee/sass/less/html/image/css 等文件的的測(cè)試州叠、檢查、合并咧栗、壓縮虱肄、格式化、瀏覽器自動(dòng)刷新浩峡、部署文件生成翰灾,并監(jiān)聽文件在改動(dòng)后重復(fù)指定的這些步驟 ?