zoukankan      html  css  js  c++  java
  • 安装jhipster

    基础软件安装

    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: mp odejs;X: mp odejs ode_global;X: mp odejs ode_global ode_modules;

         配置git

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

                X: mpPortableGit-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: mpnodejs ode_modules pm pmrc

                prefix=X: mp odejs ode_global

                cache=X: mp odejs ode_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。可以下载这个包自己手工安装

           

  • 相关阅读:
    ES6 新特性
    基于.NET平台常用的框架整理
    你可能不知道的一些JavaScript 奇技淫巧
    js中apply方法的使用
    数据库中字段类型对应C#中的数据类型
    C# Socket SSL通讯笔记
    Media Types
    JS使用模板快速填充HTML控件数据 --- 自己写组件(0)
    FastDFS的配置、部署与API使用解读(8)FastDFS多种文件上传接口详解
    FastDFS的配置、部署与API使用解读(7)Nginx的FastDFS模块
  • 原文地址:https://www.cnblogs.com/maobuji/p/6137553.html
Copyright © 2011-2022 走看看