-
Notifications
You must be signed in to change notification settings - Fork 1
Portlet Build Project
-
Install the prerequisites
- Install Node.js project dependencies:
- Checkout, Build, and Deploy
- Configure Webservice
|
ℹ️
|
Before starting, please make sure you already set up the general KnowledgeFinder requirements: KnowledgeFinder- Prerequisites Also this portlet requires a instance of KnowledgeFinder - Webservice running on the same machine. |
To be able to test the frontend javascript code and compile LESS to CSS, you need to install modules and run commands via node.js and npm. This can be done with:
-
Eclipse extension:
-
Spring IDE from http://dist.springsource.com/release/TOOLS/update/e4.3/ (you only need to install the components containing the phrase "Spring IDE")
-
-
Standart node.js installation:
-
Download and Install Node.js (https://nodejs.org/en/) or via package manager
-
If not already done clone the repository at https://github.com/KnowledgeFinder/knowledgefinder-webapp
To build the project another settings configuration project is needed. For a list see KnowledgeFinder - Instances. Here the example configuration project is used.
Make sure the the modul portlet is used:
knowledgefinder-webservice/pom.xml
...
<modules>
...
<module>portlet</module>
<module>${knowledgefinderII.path.prefix}knowledgefinder-config-${knowledgefinderII.instance.name}/portlet-config</module>
</modules>
</modules>
...otherwise see Webservice - Get Started to build the portlet together with the webservice.
See Webservice - Get Started to build the portlet together with the webservice.
This portlet requires a instance of knowledgefinder-webservice running on the same machine or the server have to set headers needed for http://www.w3.org/TR/XMLHttpRequest/ Cross-origin resource sharing.
The connection to the webservice is defiend in src/main/resources/server.properties in the configuration project. For further information see the example configuration project.