Please follow the steps below to install OFBiz with the demo data locally on your own machine.
Step-by-step guide
The main steps for installing OFBiz locally are as follows:
- Install Java SDK
- The current stable release (16.11) needs Java 1.8 as a minimum
- If you do not have Java installed then you can download it from here (ADD Link to Java for download)
- Download the latest stable release
- You can download the latest stable release via the following link (ADD link to Download)
- You can download the latest stable release via the following link (ADD link to Download)
- Building and Starting OFBiz
- Extract the downloaded zip file
- Open a terminal and navigate into the newly created directory
If you are using Linux enter the following at the command line
./gradlew loadDefault ofbiz
If you are using Windows then enter the following at the command line
gradlew loadDefault ofbiz
This command will build OFBiz, load the demo data and also start OFBiz running.
- Logging into the BackEnd Applications
- Logging into the E-Commerce Stores
- Stopping OFBiz
- unpack the release file and go into the newly created directory
- using the command line, build the system (with demo data) and run it with the following command:
gradlew loadDefault ofbiz
(on Linux and like use "./gradlew" rather than "gradlew")- point your browser to http://localhost:8080/catalog and login with username "admin" and password "ofbiz"
- refer to the README file for further details
- Building OFBiz
Gradle
You might need to use Gradle instead of Ant in newer versions, please then refer to the README.MD file at OFBiz folder root
- OFBiz comes with Apache Ant included and Ant is used to build OFBiz.
To build OFBiz navigate into the ofbiz directory and then run the following command
$ ./ant load-demo
NOTE: This will build OFBiz using the version of Apache Ant that is included. It will also load the demo data that will help you understand OFBiz by seeing some sample transactions and reports.
- Starting OFBiz
- Once the build is complete, you will need to start OFBiz
To start OFBiz, navigate into the ofbiz directory and then run the following command
$ ./ant start
NOTE: If you are running Windows you will need to use the command terminal and run the ant start.bat (NOTE - check if this is correct)
- Logging into OFBiz and the backend applications
To log into OFBiz and its backend applications you will need to open a browser and enter the following URL
https://localhost:8443/accounting/control/main
Once the login screen appears
Login using the user 'admin' with the password 'ofbiz'
NOTE: All the parties setup with the demo data have the default password 'ofbiz' so you can also login as 'DemoCustomer', 'DemoSupplier' or 'DemoEmployee' etc
- Logging into the e-commerce store
To log into the OFBiz E-Commerce Webstore you will need to open a browser and enter the following URL
http://localhost:8080/ecommerce/control/main
NOTE: You can test the webstore features including shopping cart, blog, newsletter subscriptions, promotions and also buy products using the DemoCustomer profle (User Id = DemoCustomer, password = 'ofbiz').
Related articles