欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

jhipster创建项目问答汇总_[恭喜JHipster社区喜提 VueJS !]

发布时间:2023/11/27 39 豆豆
生活随笔 收集整理的这篇文章主要介绍了 jhipster创建项目问答汇总_[恭喜JHipster社区喜提 VueJS !] 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

在中国的狗年农历腊月廿三 也就是我国过小年的时候, Twitter上传来喜讯 jhipster-vuejs 团队在NPM上发布了 我们偏Vue系全栈程序员 "翘臀以盼" JHipster × Vue.js Beta版 1.0 !

Twitter原文地址:

1月28日​twitter.com

原先的 JH-Vue 只有 Blueprint版 , 如今第一次发布 开箱即用的Beta版, 俺接下来先来给猿们尝尝鲜 ; )

0.安装JHipster (需要先安装Node.js&Npm)

$ npm install -g generator-jhipster   
陈龙:从0开始,5分钟创建一个Spring Boot + Angular/React应用​zhuanlan.zhihu.com

1. 全局安装JH-VuejsNPM包(latest版已出)

$ npm install -g generator-jhipster-vuejs

2. 将JH-Vuejs 模块符号链接至当前项目的依赖中 (ps:用管理员权限cmd运行)

$ npm link generator-jhipster-vuejs

3. 按需生成JH-Vuejs前后端分离项目 (ps:用管理员权限cmd运行)

$ jhipster -d --blueprints vuejs # 根据下列 > 标识选项即可创建INFO! Using JHipster version installed globally
INFO! Debug logging is on
DEBUG!  No command specified. Running default
INFO! Running default command
DEBUG!  cmd: app
DEBUG!  args:
DEBUG!  opts:
DEBUG!  cmdArgs:
INFO! Executing jhipster:app
INFO! Options: d: true, blueprint: vuejs, from-cli: true██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝██╗   ██║ ██╔═══██║    ██║    ██╔════╝   ╚═══██╗    ██║    ██╔═══╝   ██╔══██║╚██████╔╝ ██║   ██║ ████████╗ ██║       ██████╔╝    ██║    ████████╗ ██║  ╚██╗╚═════╝  ╚═╝   ╚═╝ ╚═══════╝ ╚═╝       ╚═════╝     ╚═╝    ╚═══════╝ ╚═╝   ╚═╝https://www.jhipster.techWelcome to JHipster v5.7.2
Application files will be generated in folder: D:ALocal_toolDepotsRunCodeDepotJHipster-Vue.js_______________________________________________________________________________________________________________Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/If you find JHipster useful, consider sponsoring the project at https://opencollective.com/generator-jhipster_______________________________________________________________________________________________________________WARNING! Java 1.8 is not found on your computer. Your Java version is: 9______________________________________________________________________________JHipster update available: 5.8.1 (current: 5.7.2)Run npm install -g generator-jhipster to update.______________________________________________________________________________
? (1/18) 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/18) What is the base name of your application? 例: (vuedemo) //项目名称? (3/18) What is your default Java package name? 例: (com.jh.vue) //默认生成包名// jhipster registry是一个基于spring cloud的配置中心。所有的微服务APP都需要注册到这里,集成了eureka
? (4/18) Do you want to use the JHipster Registry to configure, monitor and scale your application?No? (5/18) Which *type* of authentication would you like to use? (Use arrow keys) //选择认证方式
> JWT authentication (stateless, with a token) //J(son)W(eb)T(oken)(无状态)HTTP Session Authentication (stateful, default Spring Security mechanism) //Spring Security默认机制 基于HTTP会话的认证方式(带状态)OAuth2 Authentication (stateless, with an OAuth2 server implementation) //OAuth2的认证实现(无状态)? (6/18) Which *type* of database would you like to use? (Use arrow keys) //选择数据库类型
> SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle) //关系型数据库MongoDB //NoSQLCassandra //NoSQL? (7/18) Which *production* database would you like to use? (Use arrow keys) //生产数据库
> MySQLMariaDBPostgreSQLOracle - 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? (8/18) Which *development* database would you like to use? (Use arrow keys) //开发数据库
> H2 with disk-based persistence //数据存储在磁盘的H2H2 with in-memory persistence //内存H2(服务关闭数据丢失)MySQL? (9/18) Do you want to use the Spring cache abstraction? // 根据需求选择缓存
> Yes, with the Ehcache implementation (local cache, for a single node)  // 本地缓存方案 ehcacheYes, with the Hazelcast implementation (distributed cache, for multiple nodes) // 集群缓存方案,多节点缓存,适合多微服务的分布式环境[BETA] Yes, with the Infinispan implementation (hybrid cache, for multiple nodes) Yes, with Memcached (distributed cache) - Warning, when using an SQL database, this will disable the Hibernate 2nd lev
el cache! // memcached(分布式缓存)No - Warning, when using an SQL database, this will disable the Hibernate 2nd level cache!  // 不使用缓存? (10/18) Do you want to use Hibernate 2nd level cache? (Use arrow keys) (Y/n)//Hibernate 二级缓存Yes ? (11/18) Would you like to use Maven or Gradle for building the backend? (Use arrow keys) //选择后台构建系统
> Maven //更成熟,稳定,用户群体更大Gradle //更灵活,易于扩展,支持maven一键转Gradle? (12/18) Which other technologies would you like to use? (Press <space> to select) //可选技术(此选项可为空,当前选择为空)( ) 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/18) Which *Framework* would you like to use for the client? // 选择前端框架, 当前 VueBeta版只能选择Vuejs
> Vue.js? (14/18) Would you like to enable internationalization support? (Y/n) //是否使用国际化Yes? (15/18)Please choose the native language of the application? (Use arrow keys) //选择本地化语言Catalan
>Chinese (Simplified) //中文简体Chinese (Traditional)CzechDanishDutchEnglish
(Move up and down to reveal more choices)? (16/18)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)? (17/18) Besides JUnit and Jest, which testing frameworks would you like to use? (Press <space> to select, <a> to toggle all, <
i> to invert selection) // 选择测试框架,针对微服务http接口测试,生成测试报告(暂不需要)( ) Gatling( ) Cucumber( ) Protractor? (18/18) Would you like to install other generators from the JHipster Marketplace? (Y/N)//  //从JHipster Marketplace 安装其他生成器
NoInstalling languages: zh-cn, enKeyStore 'src/main/resources/config/tls/keystore.p12' generated successfully.Unable to find src/main/webapp//app/config/translation.ts or missing required jhipster-needle. Language pipe not updated with languages: zh-cn,ca since block was not found. Check if you have enabled translation support.create .prettierrccreate .prettierignorecreate srcmainjibentrypoint.shcreate srcmaindockerDockerfilecreate srcmaindockerentrypoint.shcreate srcmaindocker.dockerignorecreate srcmaindockerapp.ymlcreate srcmaindockersonar.yml .........

该GitBook地址提供创建多种业务场景下的通用模板应用 !

创建应用 · jhipster开发笔记​jh.jiankangsn.com

4. 导入依赖 (ps:用管理员权限cmd运行)

npm run webpack:build

5. 启动项目

关于了解更多JH相关知识请关注本专栏

JHipster​zhuanlan.zhihu.com

总结

以上是生活随笔为你收集整理的jhipster创建项目问答汇总_[恭喜JHipster社区喜提 VueJS !]的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。