Jhipster(一)

环境准备:

nodejs

npm install –g yarn

npm install –g yo bower gulp-cli

yarn global add generator-jhipster

JDK8 等

开发工具:IntelliJ IDEA

数据库:Postgres

       jhipster,今天搭建新公司环境时接触到,现在有点蒙。就这半天搭建环境以及Demo的感觉,Jhipster主要存在意义就是框架的搭建。他可以根据用户的一系列需求,定制化的生成代码的代码生成器。

        环境准备完毕后,键入cd (项目放置文件)。

        键入yo jhipster。随后根据用户选择需求生成项目大体框架。

        

mkdir jhipster\app
cd jhipster\app
yo jhipster

? (1/15) Which *type* of application would you like to create? (Use arrow keys) //选择创建的应用类型
> Monolithic application (recommended for simple projects) //综合应用
 Microservice application //微服务应用
 Microservice gateway //微服务网关
 [BETA] JHipster UAA server (for microservice OAuth2 authentication) //微服务OAuth2的身份认证服务

? (2/15) Which *Framework* would you like to use for the client? //选择AngularJS 版本
  AngularJS 1.x 
> [BETA] Angular 2.x

? (3/15) What is the base name of your application? (app) //服务名

? (4/15) Would you like to install other generators from the JHipster Marketplace? No 
//从JHipster Marketplace 安装其他生成器

? (5/15) What is your default Java package name? (com.shunneng.app) //默认包名

? (6/15) Which *type* of authentication would you like to use? (Use arrow keys) //选择认证方式
> HTTP Session Authentication (stateful, default Spring Security mechanism) 
 //Spring Security默认机制 基于HTTP会话的认证方式(带状态)
 OAuth2 Authentication (stateless, with an OAuth2 server implementation) //OAuth2的认证实现(无状态)
 JWT authentication (stateless, with a token) //J(son)W(eb)T(oken)(无状态)

? (7/15) Which *type* of database would you like to use? (Use arrow keys) //选择数据库类型
> SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle) //关系型数据库
 MongoDB //NoSQL
 Cassandra //NoSQL

? (8/15) Which *production* database would you like to use? (Use arrow keys) //生产数据库
> MySQL
  MariaDB
  PostgreSQL
  Oracle - 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

? (9/15) Which *development* database would you like to use? (Use arrow keys) //开发数据库
> H2 with disk-based persistence //数据存储在磁盘的H2
 H2 with in-memory persistence //内存H2(服务关闭数据丢失)
 MySQL

? (10/15) Do you want to use Hibernate 2nd level cache? (Use arrow keys) //Hibernate 二级缓存
 No
> Yes, with ehcache (local cache, for a single node) //本地缓存方案 ehcache
 Yes, with HazelCast (distributed cache, for multiple nodes) 
  //集群缓存方案,多节点缓存,适合多微服务的分布式环境

? (11/15) Would you like to use Maven or Gradle for building the backend? (Use arrow keys) 
  //选择后台构建系统
> Maven //更成熟,稳定,用户群体更大
 Gradle //更灵活,易于扩展,支持maven一键转Gradle

? (12/15) Which other technologies would you like to use? (Press <space> to select) //可选技术
>( ) Social login (Google, Facebook, Twitter) //第三方社交登录,基于OAuth2.0
 ( ) 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 是一种高吞吐量的分布式发布订阅消息系统

? (13/15) Would you like to use the LibSass stylesheet preprocessor for your CSS? (y/N) 
   //建议使用gulp定时构建,将sass转换成css而不是运行时处理

? (14/15) Would you like to enable internationalization support? (Y/n) //是否使用国际化
? Please choose the native language of the application? (Use arrow keys) //选择本地化语言
 Catalan
> Chinese (Simplified) //中文简体
 Chinese (Traditional) //中文繁体
 Czech
 Danish
 Dutch
 English
(Move up and down to reveal more choices)

? 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)

? (15/15) Which testing frameworks would you like to use? (Press <space> to select) 
  //默认情况下 JHipster 提供 java 单元/集成测试(使用Spring JUnit支持)和 JavaScript 单元测试(使用Karma.js)。这也是一个可选项。
>( ) Gatling //使用 Gatling 进行性能测试。
 ( ) Cucumber //使用 Cucumber 模拟用户行为
 ( ) Protractor //使用 Protractor 对 AngularJS 进行集成测试

    拉的大神的翻译,总体上有些出入,但是不影响。

    我的实际上的配置:

?(1/16) Which *type* of application would you like to create?Monolithic application(recommended for simple projects)

?(2/16) What is the base name of your application?kenlen

?(3/16) What is your default Java package name?com.emodak.kenlen

?(4/16) Which *type* of authentication would you like to use?HTTP Session Authentication(stateful, default Spring Security mechanism)

?(5/16) Do you want to use social login (Google, Facebook, Twitter)? Warning, this doesn't work with Cassandra!No

?(6/16) Which *type* of database would you like to use?SQL(H2, MySQL, MariaDB, PostgreSQL, Oracle)

?(7/16) Which *production* database would you like to use?MySQL

?(8/16) Which *development* database would you like to use?MySQL

?(9/16) Do you want to use Hibernate 2nd level cache?Yes, with ehcache(local cache, for a single node)

?(10/16) Do you want to use a search engine in your application?Yes, with ElasticSearch

?(11/16) Do you want to use clustered HTTP sessions?No

?(12/16) Do you want to use WebSockets?Yes, with Spring Websocket

?(13/16) Would you like to use Maven or Gradle for building the backend?Maven

?(14/16) Would you like to use the LibSass stylesheet preprocessor for your CSS?No

?(15/16) Would you like to enable internationalization support?Yes

?Please choose the native language of the application?English

?Please choose additional languages to installChinese (Simplified), Chinese (Traditional)

?(16/16) Which testing frameworks would you like to use?(Press <space> to select)Gatling

Installing languages: en, zh-cn, zh-tw

 这个是很相近的(懒人有懒福)。

还有牛人的翻译:http://baijiahao.baidu.com/s?id=1578406545424743508&wfr=spider&for=pc

转载于:https://my.oschina.net/zyldsy/blog/1543051

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值