Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/growerp/growerp-ofbiz
Backend Growerp plugin for Apache OFBiz, Required for the flutter growerp frontend when using Apache OFBiz.
https://github.com/growerp/growerp-ofbiz
groovy java ofbiz
Last synced: 19 days ago
JSON representation
Backend Growerp plugin for Apache OFBiz, Required for the flutter growerp frontend when using Apache OFBiz.
- Host: GitHub
- URL: https://github.com/growerp/growerp-ofbiz
- Owner: growerp
- Created: 2020-09-18T11:18:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-30T23:59:03.000Z (over 1 year ago)
- Last Synced: 2024-11-15T00:11:44.474Z (3 months ago)
- Topics: groovy, java, ofbiz
- Language: Groovy
- Homepage:
- Size: 88.9 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
Note: This software is currently not kept up to date with the updated GrowERP flutter frontend which works with Moqui Only.
This OFBiz plugin version works with the growerp frontend of december 10 2020.
If you like this OFBiz plugin to work with newer GrowERP flutter versions, send a Pull request or sponsor this project, see the growerp.com website== GrowERP OFBiz plugin for the Flutter frontend.
////
check https://powerman.name/doc/asciidoc for format
////
=== Introduction
A plugin to serve the GrowERP frontend at https://github.com/growerp/growerp== Installation
install Apache Ofbiz on Ubuntu: (works on any OS very similarly)
[source, bash]
----
git clone https://github.com/apache/ofbiz-framework.git ofbiz
git clone https://github.com/apache/ofbiz-plugins.git
cp ofbiz-plugins/ofbiz-rest-impl ofbiz/plugins
git clone https://github.com/growerp/growerp-ofbiz.git ofbiz/plugins/growerp
cd ofbiz
./gradlew loadAll
./gradlew ofbiz
----== Extra for local development
When in development, we need to change ofbiz to make the rest interface using http instead of https which is the OFBiz default.=== change OFBiz Rest Plugin so you do not need a valid ssl certificate:
file:
plugins/ofbiz-rest-impl/webapp/ofbiz-rest-jersey/WEB-INF/controller.xml +
change: +
[source, xml]
----
from:
To:
----Further you need apache2 in front of ofbiz.
install:
[source, bash]
----
sudo apt install apache2
sudo a2enmod headers
sudo a2enmod mod_proxy
sudo a2enmod mod_proxy_ajp
----
replace file: /etc/apache2/sites-enabled/000-default.conf
with this:
[source, config]
----AddDefaultCharset off
Order deny,allow
Allow from allProxyVia On
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Headers "Authorization,ContentType"
Header always set Access-Control-Allow-Credentials "true"NameVirtualHost *:80
ServerName localhost
ServerAdmin [email protected]
ProxyRequests Off
ProxyPreserveHost On
proxyPass /rest ajp://localhost:8009/rest
proxyPassreverse /rest ajp://localhost:8009/rest----
when installed, restart apache2:
[source, bash]
----
systemctl restart apache2
----
then the rest interface should work with http://localhost/restIf you know a beter way to avoid the XMLHttpRequest error?
Let me know!In the link:https://github.com/growerp/growerp[admin flutter project] there is a link:https://github.com/growerp/growerp/blob/master/test/services/ofbiz_testManual.dart[flutter test] for this ofbiz component