欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Moqui
小 (→安装) |
小 (→MySQL) |
||
(未显示1个用户的46个中间版本) | |||
第3行: | 第3行: | ||
==Ecosystem== | ==Ecosystem== | ||
*Moqui Framework: 核心 Core | *Moqui Framework: 核心 Core | ||
− | *Moqui Mantle: 基础 Foundation | + | *Moqui Mantle: [https://moqui.org/mantle.html 基础 Foundation] 以下数字随版本会有所不同 |
− | -Universal Data Model (UDM) | + | -Universal Data Model (UDM): 360 entities |
− | -Universal Service Library (USL) | + | -Universal Service Library (USL): 256 view entities, 718 services, and a REST API with 415 services |
+ | |||
+ | -Universal Business Process Library ([https://github.com/moqui/mantle-ubpl UBPL]) | ||
+ | |||
+ | -Simple Screens: 226 screens, 690 forms, and 23 document templates | ||
− | |||
*Moqui Crust: 扩展 Add-on | *Moqui Crust: 扩展 Add-on | ||
+ | *Moqui Application: POP Commerce (Retail and Wholesale ERP and eCommerce ), HiveMind (Project Management and Service ERP) | ||
− | == | + | ==框架== |
[[moqui/features]] | [[moqui/features]] | ||
+ | *[https://moqui.org/javadoc/index.html Moqui Framework API] | ||
+ | *[https://github.com/moqui/moqui-framework Moqui Framework] | ||
+ | *[https://github.com/moqui/moqui-runtime Moqui Runtime] | ||
+ | |||
+ | ===功能=== | ||
+ | 包含和集成的一些功能框架: | ||
+ | *[https://github.com/moqui/moqui-aws AWS] [[Amazon Web Services]] | ||
+ | *[https://github.com/moqui/moqui-camel Apache Camel] [[Apache Camel]] | ||
+ | *[https://github.com/moqui/moqui-poi Apache POI] [[Apache POI]] | ||
+ | *[https://github.com/moqui/moqui-fop Apache FOP] | ||
+ | *[https://github.com/moqui/moqui-atomikos Atomikos] | ||
+ | *[https://github.com/moqui/moqui-elasticsearch Elasticsearch] [[Elasticsearch]] | ||
+ | *[https://github.com/moqui/moqui-hazelcast Hazelcast] [[Hazelcast]] | ||
+ | *[https://github.com/moqui/moqui-kie JBoss KIE] [[JBoss BPM|JBoss KIE]] | ||
+ | *[https://github.com/moqui/moqui-orientdb OrientDB] [[OrientDB]] | ||
+ | *[https://github.com/moqui/moqui-sftp SFTP] | ||
+ | *[https://github.com/moqui/moqui-wikitext WikiText] | ||
==迁移== | ==迁移== | ||
第18行: | 第39行: | ||
==安装== | ==安装== | ||
− | + | 下载类似 [https://github.com/moqui/moqui-framework/releases/tag/v2.1.3 MoquiDemo-2.1.3.war] 的文件 | |
+ | $ java -jar MoquiDemo-2.1.3.war load | ||
+ | $ java -jar MoquiDemo-2.1.3.war | ||
+ | http://localhost:8080/ | ||
+ | john.doe/moqui | ||
+ | 快速启动 | ||
+ | $ git clone https://github.com/moqui/moqui-framework.git moqui | ||
+ | $ cd moqui | ||
+ | $ ./gradlew getComponent -Pcomponent=PopCommerce | ||
+ | $ ./gradlew getComponent -Pcomponent=HiveMind | ||
+ | $ ./gradlew downloadElasticSearch | ||
+ | $ ./gradlew load // 编译生成 moqui.war | ||
+ | $ ./gradlew cleanAll gitPullAll load // 以后代码更新和重构数据库 | ||
+ | $ java -jar moqui.war load conf=conf/MoquiProductionConf.xml // 装入数据,修改 runtime/conf/MoquiProductionConf.xml,[https://github.com/moqui/moqui-framework/blob/master/framework/src/main/resources/MoquiDefaultConf.xml 参考更多配置Sample] | ||
+ | $ java -jar moqui.war | ||
+ | http://localhost:8080/popc 和 http://localhost:8080/ | ||
+ | |||
+ | 可能的错误:17:34:39.373 WARN gement][T#2] o.elasticse.c.r.a.DiskThresholdMonitor high disk watermark [90%] exceeded on [uaHAW-oSTs2in1lXcIfcXw][MoquiLocal][/Users/huihoo/Software/e3.net/moqui/runtime/elasticsearch/data/nodes/0] free: 16.1gb[3.4%], shards will be relocated away from this node | ||
+ | |||
+ | 或者获得[https://github.com/moqui/moqui/releases moqui安装包] | ||
java -jar moqui-<version>.war -load // 创建演示Derby库和表 | java -jar moqui-<version>.war -load // 创建演示Derby库和表 | ||
java -jar moqui-<version>.war // 运行 with 嵌入 Servlet, JTA/CP,DB | java -jar moqui-<version>.war // 运行 with 嵌入 Servlet, JTA/CP,DB | ||
第29行: | 第69行: | ||
gradle cleanAll | gradle cleanAll | ||
更多细节:[http://www.moqui.org/framework/docs/RunDeploy.html Running and Deployment Instructions] | 更多细节:[http://www.moqui.org/framework/docs/RunDeploy.html Running and Deployment Instructions] | ||
+ | |||
+ | framework > build > resources > MoquiDefaultConf.xml 配置 datasource | ||
+ | gradle loadProduction | ||
+ | gradle runProduction | ||
+ | |||
+ | ===MySQL=== | ||
+ | 一、提供了以 Docker 的方式运行 MySQL | ||
+ | |||
+ | 二、配置 MoquiDevConf.xml 或 MoquiProductionConf.xml 使用 [[MySQL]] 或 [[MariaDB]] | ||
+ | |||
+ | <entity-facade crypt-pass="MoquiDefaultPassword:CHANGEME"> | ||
+ | <datasource group-name="transactional" database-conf-name="mysql" schema-name=""> | ||
+ | <inline-jdbc jdbc-uri="jdbc:mysql://127.0.0.1:3306/moqui?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8" | ||
+ | jdbc-username="moqui" jdbc-password="moqui" pool-minsize="2" pool-maxsize="50"/> | ||
+ | </datasource> | ||
+ | </entity-facade> | ||
+ | |||
+ | 若出现 Class [com.mysql.jdbc.Driver] not found 错误。 | ||
+ | |||
+ | 修改 build.gradle,加入 | ||
+ | dependencies{ | ||
+ | classpath 'mysql:mysql-connector-java:8.0.24' | ||
+ | } | ||
+ | |||
+ | 把 mysql-connector-java-8.0.24.jar 放在 runtime/lib/ 目录下 | ||
+ | |||
+ | 再重新编译 | ||
+ | ./gradlew cleanAll gitPullAll load // 下载依赖 | ||
+ | |||
+ | 然后运行 | ||
+ | java -jar moqui.war load conf=conf/MoquiProductionConf.xml // 创建数据库表和导入初始化数据 | ||
+ | java -jar moqui.war conf=conf/MoquiProductionConf.xml | ||
+ | http://localhost:8080/ | ||
+ | |||
+ | ==Kotlin== | ||
+ | Moqui 的主要开发语言是:[[Groovy]]、[[Java]],可引入 [[Kotlin]],带来 [[Gradle]] + Kotlin 的强力组合、[[Domain-specific language|DSL]]、灵活性和生产力。 | ||
+ | |||
+ | ==项目== | ||
+ | *[https://github.com/moqui/MarbleERP Marble ERP] | ||
+ | *[https://github.com/growerp GrowERP] | ||
+ | *[https://github.com/moqui/PopRestStore POP REST Store] 使用了 [[Vue.js]] | ||
+ | *[https://github.com/moqui/moqui-elasticsearch moqui-elasticsearch] [[Elasticsearch]] | ||
+ | |||
+ | ==API== | ||
+ | Full [[REST]] [[API]] | ||
+ | [[文件:Moqui-REST-API-Swagger-UI.png]] | ||
+ | |||
+ | ==集成== | ||
+ | *[https://github.com/moqui/mantle-oagis Mantle OAGIS Integrations] | ||
+ | *[https://github.com/moqui/mantle-edi Mantle EDI Integrations] | ||
+ | *[https://github.com/moqui/moqui-aws Moqui AWS Integrations] | ||
+ | *[https://github.com/moqui/mantle-yotpo Mantle YotPo Integration] | ||
+ | *[https://github.com/moqui/mantle-shippo Mantle Shippo Integration] | ||
+ | *[https://github.com/moqui/AuthorizeDotNet Mantle Authorize.NET Integration] | ||
+ | *[https://github.com/moqui/mantle-paytrace Mantle PayTrace Integration] | ||
+ | *[https://github.com/moqui/mantle-braintree Braintree Payment Processor] | ||
+ | *[https://github.com/moqui/mantle-rsis Mantle RSIS Core REST API Integration] | ||
+ | |||
+ | ==应用== | ||
+ | *[https://github.com/moqui/PopRestStore POP REST Store] - eCommerce REST API and Web App | ||
+ | *[https://github.com/moqui/PopCommerce POP (Plain-Old-Product) Commerce] - Retail and Wholesale ERP and eCommerce | ||
+ | *[https://github.com/moqui/MarbleERP Moqui Marble ERP] | ||
+ | *[https://github.com/moqui/HiveMind HiveMind] Project Management and Service ERP | ||
+ | |||
+ | ==PostgreSQL== | ||
+ | |||
+ | ==Elasticsearch== | ||
+ | [[Elasticsearch]] 是 Moqui 一个重要的部件 | ||
+ | |||
+ | 可能存在的问题: | ||
+ | |||
+ | Error logging to ElasticSearch: org.moqui.BaseException: Error calling HTTP request to http://127.0.0.1:9200/moqui_logs/_bulk | ||
+ | 重启一下 java -jar moqui.war | ||
+ | |||
+ | ==中文== | ||
+ | |||
+ | ==图书== | ||
+ | *[http://book.huihoo.com/moqui/making-apps-with-moqui-1.0-based-on-moqui-1.4.1.pdf Making Apps with Moqui] | ||
+ | *[http://docs.huihoo.com/moqui/introduction-to-moqui-framework-1.0-zh-cn.pdf Moqui应用开发指南中文版] | ||
==图集== | ==图集== | ||
<gallery> | <gallery> | ||
image:moqui-ecosystem.png|Ecosystem | image:moqui-ecosystem.png|Ecosystem | ||
+ | image:moqui-system-dashboard.png|系统仪表盘 | ||
+ | image:moqui-crust-add-ons.png|Moqui构件 | ||
+ | image:moqui-execution-context.png|执行上下文 | ||
+ | image:Moqui-HiveMind.png|HiveMind | ||
+ | image:moqui-pop-commerce-admin.png|电商应用 | ||
+ | image:moqui-tenant.png|多租户 | ||
+ | image:moqui-geo.png|Geo | ||
+ | image:moqui-bitcoin.png|Bitcoin | ||
+ | image:moqui-email-template.png|邮件模版 | ||
+ | image:moqui-user-account.png|用户帐号 | ||
+ | image:moqui-mantle-usl-rest-api.png|REST API | ||
</gallery> | </gallery> | ||
− | |||
− | |||
− | |||
==链接== | ==链接== | ||
*[http://moqui.org Mogui官网] | *[http://moqui.org Mogui官网] | ||
− | *[https://github.com | + | *[https://github.com/moqui Moqui @ GitHub] |
*[http://docs.huihoo.com/moqui Moqui开放文档] | *[http://docs.huihoo.com/moqui Moqui开放文档] | ||
*[http://docs.huihoo.com/javadoc/moqui/ Moqui Javadoc] | *[http://docs.huihoo.com/javadoc/moqui/ Moqui Javadoc] | ||
第54行: | 第181行: | ||
[[category:groovy]] | [[category:groovy]] | ||
[[category:XML]] | [[category:XML]] | ||
+ | [[category:elasticsearch]] | ||
+ | [[category:PostgreSQL]] |
2021年6月26日 (六) 14:16的最后版本
Moqui Ecosystem,Apache OFBiz 的新一代产品和下一代框架。
目录 |
[编辑] Ecosystem
- Moqui Framework: 核心 Core
- Moqui Mantle: 基础 Foundation 以下数字随版本会有所不同
-Universal Data Model (UDM): 360 entities
-Universal Service Library (USL): 256 view entities, 718 services, and a REST API with 415 services
-Universal Business Process Library (UBPL)
-Simple Screens: 226 screens, 690 forms, and 23 document templates
- Moqui Crust: 扩展 Add-on
- Moqui Application: POP Commerce (Retail and Wholesale ERP and eCommerce ), HiveMind (Project Management and Service ERP)
[编辑] 框架
[编辑] 功能
包含和集成的一些功能框架:
- AWS Amazon Web Services
- Apache Camel Apache Camel
- Apache POI Apache POI
- Apache FOP
- Atomikos
- Elasticsearch Elasticsearch
- Hazelcast Hazelcast
- JBoss KIE JBoss KIE
- OrientDB OrientDB
- SFTP
- WikiText
[编辑] 迁移
Migration from Apache OFBiz to Moqui
[编辑] 安装
下载类似 MoquiDemo-2.1.3.war 的文件
$ java -jar MoquiDemo-2.1.3.war load $ java -jar MoquiDemo-2.1.3.war http://localhost:8080/ john.doe/moqui
快速启动
$ git clone https://github.com/moqui/moqui-framework.git moqui $ cd moqui $ ./gradlew getComponent -Pcomponent=PopCommerce $ ./gradlew getComponent -Pcomponent=HiveMind $ ./gradlew downloadElasticSearch $ ./gradlew load // 编译生成 moqui.war $ ./gradlew cleanAll gitPullAll load // 以后代码更新和重构数据库 $ java -jar moqui.war load conf=conf/MoquiProductionConf.xml // 装入数据,修改 runtime/conf/MoquiProductionConf.xml,参考更多配置Sample $ java -jar moqui.war http://localhost:8080/popc 和 http://localhost:8080/
可能的错误:17:34:39.373 WARN gement][T#2] o.elasticse.c.r.a.DiskThresholdMonitor high disk watermark [90%] exceeded on [uaHAW-oSTs2in1lXcIfcXw][MoquiLocal][/Users/huihoo/Software/e3.net/moqui/runtime/elasticsearch/data/nodes/0] free: 16.1gb[3.4%], shards will be relocated away from this node
或者获得moqui安装包
java -jar moqui-<version>.war -load // 创建演示Derby库和表 java -jar moqui-<version>.war // 运行 with 嵌入 Servlet, JTA/CP,DB http://localhost:8080/
git clone https://github.com/moqui/moqui 编译源代码
gradle build gradle load gradle run gradle clean gradle cleanAll
更多细节:Running and Deployment Instructions
framework > build > resources > MoquiDefaultConf.xml 配置 datasource
gradle loadProduction gradle runProduction
[编辑] MySQL
一、提供了以 Docker 的方式运行 MySQL
二、配置 MoquiDevConf.xml 或 MoquiProductionConf.xml 使用 MySQL 或 MariaDB
<entity-facade crypt-pass="MoquiDefaultPassword:CHANGEME"> <datasource group-name="transactional" database-conf-name="mysql" schema-name=""> <inline-jdbc jdbc-uri="jdbc:mysql://127.0.0.1:3306/moqui?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8" jdbc-username="moqui" jdbc-password="moqui" pool-minsize="2" pool-maxsize="50"/> </datasource> </entity-facade>
若出现 Class [com.mysql.jdbc.Driver] not found 错误。
修改 build.gradle,加入
dependencies{ classpath 'mysql:mysql-connector-java:8.0.24' }
把 mysql-connector-java-8.0.24.jar 放在 runtime/lib/ 目录下
再重新编译
./gradlew cleanAll gitPullAll load // 下载依赖
然后运行
java -jar moqui.war load conf=conf/MoquiProductionConf.xml // 创建数据库表和导入初始化数据 java -jar moqui.war conf=conf/MoquiProductionConf.xml http://localhost:8080/
[编辑] Kotlin
Moqui 的主要开发语言是:Groovy、Java,可引入 Kotlin,带来 Gradle + Kotlin 的强力组合、DSL、灵活性和生产力。
[编辑] 项目
[编辑] API
[编辑] 集成
- Mantle OAGIS Integrations
- Mantle EDI Integrations
- Moqui AWS Integrations
- Mantle YotPo Integration
- Mantle Shippo Integration
- Mantle Authorize.NET Integration
- Mantle PayTrace Integration
- Braintree Payment Processor
- Mantle RSIS Core REST API Integration
[编辑] 应用
- POP REST Store - eCommerce REST API and Web App
- POP (Plain-Old-Product) Commerce - Retail and Wholesale ERP and eCommerce
- Moqui Marble ERP
- HiveMind Project Management and Service ERP
[编辑] PostgreSQL
[编辑] Elasticsearch
Elasticsearch 是 Moqui 一个重要的部件
可能存在的问题:
Error logging to ElasticSearch: org.moqui.BaseException: Error calling HTTP request to http://127.0.0.1:9200/moqui_logs/_bulk
重启一下 java -jar moqui.war
[编辑] 中文
[编辑] 图书
[编辑] 图集
[编辑] 链接
- Mogui官网
- Moqui @ GitHub
- Moqui开放文档
- Moqui Javadoc
- 在线Demo
- Port of Apache OFBiz 10.04 to Moqui Framework
- David E. Jones Founder and PMC Member, Apache OFBiz + Founder and Moderator, Moqui
- Moqui背后的公司Hemagenesis