猫不急

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

基础软件安装

  1. 安装JDK,需要配置环境变量。暂时使用1.8版本
  2. 安装maven,需要配置环境变量。  http://maven.apache.org/
  3. 安装Node.js ,https://nodejs.org/en/
  4. 安装git,  https://git-scm.com/

配置与插件包安装

      配置Nodejs:

             在系统变量中增加:NODE_HOME  (以X:tmp为例,配置以下环境变量,并加入path中)

             X:\tmp\nodejs\;X:\tmp\nodejs\node_global;X:\tmp\nodejs\node_global\node_modules;

     配置git

           在系统变量中增加:GIT_HOME  (以X:tmp为例,配置以下环境变量,并加入path中)

            X:\tmp\PortableGit-1.8.0-preview20121022

 

           设置http代理(对git:\\方式不生效,这里还在摸索)

           设置全局代理: git config --global http.proxy http://127.0.0.1:60695

                                  git config --global https.proxy http://127.0.0.1:60695

                                  git config --global http.sslVerify false

           查看是否配置成功:git config --list

           取消全局代理:git config --global --unset http.proxy

                                 git config --global --unset https.proxy

                                 git config --global --unset http.sslVerify

     安装jhipster

        官网地址 https://jhipster.github.io/  推荐到官网上查看安装步骤,进入左侧导航栏,选择setting up your environment(第四个),选择installing Jhipster。

        或者直接点击这里进入: https://jhipster.github.io/installation/

        安装或更新NPM:  npm install -g npm

 

 

      配置NPM:

 

            修改配置文件:X:\tmpnodejs\node_modules\npm\npmrc

 

            prefix=X:\tmp\nodejs\node_global

 

            cache=X:\tmp\nodejs\node_cache

 

            registry =http://registry.cnpmjs.org/(也可使用淘宝的代理)

 

           配置后可通过下面方式来验证是否成功   npm config get registry 

 

 

        安装Yeoman:   npm install -g yo

        安装Bower: npm install -g bower

 

      配置Bower:

         windows创建%UserProfile%\.bowerrc文件( 若為 Mac OS X 請建立 ~/.bowerrc 檔案 ),写入

   {
       "proxy":       "http://127.0.0.1:60695",
       "https-proxy": "http://127.0.0.1:60695",
       "strict-ssl":  false
   }

        安装Gulp: npm install -g gulp-cli

        安装JHipster:npm install -g generator-jhipster

       

    生成APP

      参考该文档:https://jhipster.github.io/creating-an-app/    

      命令行下:

       mkdir myapplication

       cd myapplication/

       yo jhipster

      如果生成有问题,可以强制刷新

      yo jhipster --force

 

    生成过程中 用到了phantomjs。可以下载这个包自己手工安装

       

posted on 2016-12-06 14:40  猫不急  阅读(505)  评论(0编辑  收藏  举报