How-To: Configure the custoMES project environment
From FactorityWiki
Contents |
Introduction
First Steps
Checking out the custoMES project
- Open Eclipse with the following workspace:
- workspace_custoMES-local for local source code development
- Checkout as MAVEN PROJECT the custoMES project from SVN: http://svn.factority.org/repos/custoMES
- Configure the AS+ server config files in the debugging-custoMES project:
- AS-plus.launch to configure the JVM
- as+-bootstrap.xml
- as+-debugging.xml (database properties such as database tool, driver, port, user,...)
- as0.properties
- commons.logging.properties
- configuration.xml
- log4j.properties
- Deploy and start the application server AS+ by custoMES-debugging/AS-plus.launch
- Go to: http://localhost:18000/gui (you can't log in yet because there is no database yet)
Install Database
- Install a database system of your choice (e.g. postgres)
- Create a database with port and user according to the AS+ database properties
- Execute the http://localhost:18000/src/Fy/DbMain.sql on the the database
- Import the basic AS+ data set (see: Downloads)
- Now you should be able to login with:
- Login: AS+
- Password: admin
Development of Web GUI
- Work with two Eclipse instances and workspaces parallel:
- workspace_custoMES-web for GUI browsing
- workspace_custoMES-server for source code developing on the server
workspace_custoMES-web
- Open Eclipse with this workspace
- Choose one of the following perspectives: Resource, Web
- Go to: Window > Show View > Others...
- Choose views:
- AS+ Navigation
- AS+ Servers
- Go AS+ Servers view:
- Add server: localhost:18000
- Right click on Server > Refresh
- Login as in the web front end (AS+ | admin)
- Right click on the Fy partition > Open partition
- Login as in the web front end (AS+ | admin)
- Switch to AS+ Navigation view
- Double click on the Partition Fy@localhost:18000 (or Right click > Reload)
- Navigate to: Sandbox
- Double click on testApp
- Navigate to: Administration > Diagnosis
- Ricgt click on Error Trace > Open in new Window
workspace_custoMES-server
Now we check out the source code of testApp. Do exactly the same as in other Eclipse instance until:
- Switch to AS+ Navigation view
- Right click on the Partition Fy@localhost:18000 > Create Project
- Switch to Package View
- Navigate to:



