Skip to content

Commit 0e16c34

Browse files
authored
Updated running eiffel-intelligence frontend documentation (#250)
1 parent b9d2e31 commit 0e16c34

File tree

2 files changed

+52
-8
lines changed

2 files changed

+52
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Visit [Eiffel Community](https://eiffel-community.github.io) to get started and
5151
# Documentation
5252

5353
1. [**Introduction**](./wiki/markdown/index.md)
54-
1. [**Running Eiffel-Intelligence frontend**](./wiki/markdown/running-eiffel-intelligence-frontend.md)
54+
1. [**Running Eiffel-Intelligence front-end**](./wiki/markdown/running-eiffel-intelligence-frontend.md)
5555
- [**Run in Docker**](./wiki/markdown/docker.md)
5656
- [**Configuration**](./wiki/markdown/configuration.md)
5757
1. [**GUI Overview**](./wiki/markdown/GUI-overview.md)

wiki/markdown/running-eiffel-intelligence-frontend.md

+51-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
Eiffel intelligence front-end is a Spring microservice distributed in a war file.
66

7-
To start the service, download the war file from
7+
Eiffel Intelligence front-end release war files can be downloaded from Jitpack:
88
[jitpack.io](https://jitpack.io/#eiffel-community/eiffel-intelligence-frontend) and look for the
99
latest version. Now replace the latest version in the link below:
1010

1111
https://jitpack.io/com/github/eiffel-community/eiffel-intelligence-frontend/<version>/eiffel-intelligence-<version>.war
1212

13+
## Running with maven command
14+
1315
If you want to test the latest code in GitHub clone the project and compile it
1416
with:
1517

@@ -19,15 +21,22 @@ append **_-DskipTests_** if you want to skip the tests since the latest on
1921
master always has passed the tests. The war file should now be found under
2022
target folder in your cloned project.
2123

22-
If you run from source code, you can run Eiffel-Intelligence front-end with maven command:
24+
If you run from source code, you can run Eiffel Intelligence front-end with maven command:
2325

2426
mvn spring-boot:run
2527

26-
Or you can run the executable war file (located in target folder, if running from source code):
28+
## Running with java command
2729

28-
java -jar eiffel-intelligence-frontend-<version>.war
30+
Another option is to run the executable war file with java command.
31+
If running from source code, war file is generated and produced by maven command (mvn install command can be used as well):
32+
33+
mvn package -DskipTests
2934

30-
if you want to run with default configuration.
35+
This command should produce a eiffel-intelligence-frontend-<version>.war file in target folder, target/eiffel-intelligence-frontend-<version>.war.
36+
37+
War file is executed by following command and with default configuration:
38+
39+
java -jar eiffel-intelligence-frontend-<version>.war
3140

3241
Own configuration can be provided with
3342

@@ -37,8 +46,43 @@ remember to keep the name of the properties file if you are a beginner to
3746
Spring. More advanced Spring user can look [here](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html)
3847
for more information about using external configuration.
3948

40-
If only few properties need to be overriden then use Java opts, for example
49+
If only few properties need to be overriden, then use Java opts, for example
4150

4251
java -jar eiffel-intelligence-frontend-<version>.war -Dspring.data.mongodb.port=27019
4352

44-
All available Eiffel-Intelligence front-end properties can be found in [application.properties](https://github.com/Ericsson/eiffel-intelligence-frontend/blob/master/src/main/resources/application.properties) example file.
53+
54+
## Running in Tomcat instance
55+
56+
To run Eiffel Intelligence front-end in Tomcat, the war file must be put into the webapp folder in tomcat installation folder, also called catalina home folder:
57+
58+
(catalina home)/webapp/
59+
60+
If Eiffel Intelligence front-end should be run without any context-path in the url address, then overwrite ROOT.war file in webapp folder with eiffel-intelligence-frontend-<version>.war file:
61+
62+
cp eiffel-intelligence-frontend-<version>.war (catalina home)/webapp/ROOT.war
63+
64+
Remove "ROOT" folder in webapp folder:
65+
66+
rm -rf (catalina home)/webapp/ROOT/
67+
68+
Create "config" folder in catalina home folder, if it doesn't exist. Spring and Eiffel Intelligence front-end will look for the application.properties configuration file in config folder:
69+
70+
mkdir (catalina home)/config
71+
72+
Copy the application.propeties file into the newly created config folder:
73+
74+
cp application.properties (catalina home)/config
75+
76+
Start Tomcat and Eiffel Intelligence front-end in background/daemon mode by executing command:
77+
78+
(catalina home)/bin/catalina.sh start
79+
80+
To run Tomcat and Eiffel Intelligence front-end with logs printed to console:
81+
82+
(catalina home)/bin/catalina.sh run
83+
84+
## Eiffel Intelligence front-end configurations and properties
85+
86+
All available Eiffel Intelligence front-end properties can be found in [application.properties](https://github.com/Ericsson/eiffel-intelligence-frontend/blob/master/src/main/resources/application.properties) example file.
87+
88+
More documentation of each Eiffel Intelligence front-end property and configurations can be found in [Configuration page](https://github.com/eiffel-community/eiffel-intelligence-frontend/blob/master/wiki/markdown/configuration.md)

0 commit comments

Comments
 (0)