-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.txt
139 lines (97 loc) · 5.46 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
PROJECT: LEOS
Joinup Release: 3.0.0
Date: 2020-03-23
INTRODUCTION
============
This is a joinup release of Project LEOS (pilot) which enables users to edit legal texts in AkomaNtoso XML format.
IMPORTANT NOTES
===============
This release is intended to provide an experience with the software and is stripped of several important components to enable ease of use.
* This software is adapted to run on a local server for demo purposes and without proper security mechanisms.
* This software provides two options for running CMIS repository. For more information see point B4.
* This software is still under active development so some features may be added, removed or changed over course of time.
DEPENDENCIES
============
To compile the supplied source files and run the generated WAR the following software should be configured:
* Java SDK version 8.0
* Maven version 3.3.9+
(Maven runtime memory might need to be set: MAVEN_OPTS=-Xms256m -Xmx512m)
(Maven settings, proxy and mirrors, might need to be adjusted to your environment and internet access requirements)
* Supported browser is Google Chrome version 45+
(Mozilla Firefox ESR version 38.3 and Microsoft Internet Explorer version 11 are known to work with minor issues)
DEMO
====
You can experience LEOS on your local machine by executing a few steps in order, following the instructions for option A OR option B.
OPTION A)
If your machine's operating system is Microsoft Windows, you can simply execute the provided script: run-all.bat.
This script will execute individual scripts that will compile AND run each of the required software components.
Open the browser and navigate to the LEOS web interface available at the following URL:
http://localhost:8080/leos-pilot/ui
LEOS is pre-configured with these demo users:
+-----------+-------+----------+--------+
| NAME | LOGIN | PASSWORD |ROLE |
+-----------+-------+----------+--------+
| Demo User | demo | demo |Normal |
+-----------+-------+----------+--------+
| John Doe | john | demo |Normal |
+-----------+-------+----------+--------+
| Jane Doe | jane | demo |Support |
+-----------+-------+----------+--------+
| S Leo | leos | demo |Support |
+-----------+-------+----------+--------+
OPTION B)
If your machine's operating system is not windows or want to run components one by one, you should follow below steps.
B1. UNZIP ARCHIVE
=================
You must unzip the distribution archive.
1) Unzip the distribution archive in the local file system
a) A new directory should now be present: {LEOS}
B2. RUNNING ANNOTATE
====================
You must compile and run annotate on the command line.
1) Traverse to folder {LEOS}/modules/annotate
2) Execute the following command to compile source code.
mvn clean install -Dmaven.test.skip=true
3) Traverse to folder {LEOS}/modules/annotate/server
4) Execute the following command to run annotate server.
mvn spring-boot:run -Dspring-boot.run.profiles=h2 -Dspring-boot.run.folders=../config/target/generated-config
Once you'll run LEOS, annotate sidebar will be available to annotate documents
For more details about DB and running this module, check {LEOS}/modules/annotate/README.txt file
B3. RUNNING USER DATABASE
=========================
You must compile and run the user database on the command line.
1) Traverse to folder {LEOS}/tools/user-repo
2) Execute the following command to compile source code.
mvn clean install
2) Execute the following command to run it.
mvn spring-boot:run -Drun.profiles=h2
B4. RUNNING REPOSITORY
======================
There are two options for running CMIS repository.
1. Use the OpenCMIS InMemory repository version included with this LEOS distribution.
To run OpenCMIS InMemory repository server, You must compile and run the repository on the command line.
1) Traverse to folder {LEOS}/tools/cmis/chemistry-opencmis-server-inmemory
2) Execute the following command to compile source code.
mvn clean install
3) Execute the following command to run it.
mvn jetty:run-war
2. Use a persistent CMIS Open Source server version.
To use and connect LEOS to persistent CMIS Open source, please go through document present at the following folder location inside this release:
{LEOS}/docs/CMIS Open Source/LEOS-CMISOpenSource-v1.0.0.pdf
B5. RUNNING LEOS
================
Notes:
- User database and repository must already be running.
- LEOS can use SAML protocol to authenticate with an IDP.
- To use SAML it is needed modify SAML configuration defined in "securityContext.xml" file inside module "security-saml".
You must run LEOS on the command line.
1) Traverse to folder {LEOS}
2) Execute the following command to compile source code.
- For default authentication: mvn clean install
- For SAML authentication: mvn clean install -Dsaml
3) Traverse to folder {LEOS}/modules/web
4) Execute the following command to run LEOS.
- For default authentication: mvn jetty:run-war
- For SAML authentication: mvn jetty:run-war -Dsaml
Open the browser and navigate to the LEOS web interface available at the following URL:
http://localhost:8080/leos-pilot/ui