安装jhipster
基础软件安装
- 安装JDK,需要配置环境变量。暂时使用1.8版本
- 安装maven,需要配置环境变量。 http://maven.apache.org/
- 安装Node.js ,https://nodejs.org/en/
- 安装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。可以下载这个包自己手工安装
安装jhipster的更多相关文章
- 【学习笔记】windows安装jhipster踏坑记录
序: 入职新公司第二天了,本来第一天是配置环境来着,配了一下午也没搞成那个jhipster的安装,每次以为应该正常的时候都是不对,yo是yeoman的指令,但是我是使用yarn管理的yeoman 纠结 ...
- JHipster的安装
JHipster GitHub地址:https://jhipster.github.io/ 刚开始接触JHipster,理解还不深,此次随笔只是把自己对JHipster的所学记录一下,也算是一种知识的 ...
- jhipster安装_Windows
1:安装 Node.js lts版本的 https://nodejs.org/en/ 2:安装Yarn https://yarn.bootcss.com/docs/install.html 3:修改y ...
- JHipster开发环境安装
本文演示如何在CentOS7上安装Jhipster以及其依赖组件. 这里采用官方推荐的Yarn安装方法,操作系统版本为CentOS 7.4. 1 安装JDK 推荐版本:OpenJDK 1.8.0-64 ...
- JHipster框架的简要搭建与说明
JHipster的亮点 风头超劲,席卷欧美,最新全能Java Web开发程式产生器 (java web generator). 由Java专家累积的开发经验,配上各类实用的框架技术,去繁取精的运用,全 ...
- Jhipster 学习(一)jhipster构建项目
如何安装jhipster 第一步:下载jdk 自己安装的1.8版本 (安装.环境变量配置略) 第二步:1.下载Eclipse (luna版 eclipse-4.4.1) 第三步:下载maven ( ...
- JHipster简介
JHipster简介 JHipster或者称Java Hipster,是一个应用代码产生器,能够创建Spring Boot + AngularJS的应用.开源项目地址:JHipster/Github. ...
- 使用jhipster搭建微服务--简单demo
简介 jhipster简单来说是一个基于nodejs+yeoman的java代码生成器.往大了说是基于java的一套微服务解决方案.请注意是一整套的微服务解决方案.jhipster在整个程序架构上都做 ...
- 微服务的脚手架Jhipster使用(一)
随着微服务的普及以及docker容器的广泛应用,有传统的soa服务衍生出微服务的概念,微服务强调的是服务的独立性,屏蔽底层物理平台的差异,此时你会发现微服务跟容器技术完美契合.在此基础上衍生出的云原生 ...
随机推荐
- Windows Server 2003安装方法
1. 设置BIOS,从光驱引导启动.光盘放入光驱,自动读盘,选择第一项“安装Windows Server 2003,Enterprise Bdition”: 2. 弹出加载安装文件界面. 3. 出现安 ...
- APP级别处理未捕获异常
前言: 项目APP有时候会出现Crash,然后就是弹出系统强制退出的对话框,点击关闭APP. 有的APP进行了处理,会发现,当程序出现异常的时候,会Toast一个提示"程序出现异常,3秒后将 ...
- Rocksdb Compaction原理
概述 compaction主要包括两类:将内存中imutable 转储到磁盘上sst的过程称之为flush或者minor compaction:磁盘上的sst文件从低层向高层转储的过程称之为compa ...
- 【linux】free命令中cached和buffers的区别
一.命令 [root@localhost ~]# free -m total used free shared buffers cached Mem: 7869 7651 218 1 191 5081 ...
- win 7下建立FTP
1.安装FTP服务 鼠标桌面右击个性化-卸载程序-打开或关闭windows功能 2.在IIS控制面板里添加FTP站点 下一步 下一步 鼠标右击 下一步 下一步 3.配置ftp站点 4.测试站点是否正常 ...
- 快速排序算法 quick sort的理解
最近做了一下算法的一些练习,感觉基础薄弱了,只是用一些已经有的东西来完成练习如quickSort(c++使用的时候是sort(起始位置,终止位置,比较函数),这个需要加头文件),但是不知道怎么推出来, ...
- Android 6.0 运行时权限处理完全解析
一.概述 随着Android 6.0发布以及普及,我们开发者所要应对的主要就是新版本SDK带来的一些变化,首先关注的就是权限机制的变化.对于6.0的几个主要的变化,查看查看官网的这篇文章http:// ...
- mac下搭建redis环境
一.redis简介 redis是一个key-value存储系统.和Memcached类似,它支持存储的value类型相对更多,包括string(字符串).list(链表).set(集合)和zset(有 ...
- [LeetCode] Fraction to Recurring Decimal 分数转循环小数
Given two integers representing the numerator and denominator of a fraction, return the fraction in ...
- [LeetCode] Search Insert Position 搜索插入位置
Given a sorted array and a target value, return the index if the target is found. If not, return the ...