You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-24Lines changed: 20 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,58 +1,54 @@
1
1
# EUSurvey
2
2
EUSurvey is the official online survey management tool of the European Commission. Its development was started in 2013 under the supervision of [DIGIT](https://ec.europa.eu/dgs/informatics/index_en.htm) and is published as open source software under the terms of the EUPL public license. EUSurvey is a servlet based application and can be installed on any servlet container.
3
-
* Travis build on master branch [](https://travis-ci.com/EUSurvey/EUsurvey)
Make sure to create a JRE_HOME environment variable that points to the Java installation folder.
11
+
Make sure to create a CATALINA_HOME environment variable that points to Tomcat's installation folder.
12
+
Make sure to add Maven's bin folder to the PATH environment variable.
13
+
12
14
## Quick start
13
-
Extensive installation guidelines may be found [here](https://joinup.ec.europa.eu/sites/default/files/document/2017-08/eusurvey_oss_installation_guide_v1_4_0_1.pdf). We give a summary of installation guidelines here.
15
+
Extensive installation guidelines may be found in our [installation guide](https://joinup.ec.europa.eu/sites/default/files/document/2017-08/eusurvey_oss_installation_guide_v1_4_0_1.pdf). We give a summary of installation guidelines here.
14
16
15
17
### Database initialization
16
-
1. Create eusurvey schemas;
18
+
Connect to the database server using a tool like MySQL Command Line Client to execute the following commands:
19
+
20
+
1. Create eusurvey schema:
17
21
```sql
18
-
createdatabaseeusurveydb character set utf8 COLLATE utf8_general_ci;
19
-
createdatabaseeusurveyreportdb character set utf8 COLLATE utf8_general_ci;
22
+
CREATESCHEMA `eusurveydb` DEFAULT CHARACTER SET utf8mb4;
20
23
```
21
24
22
25
2. Create a user which will access this schema;
23
26
```sql
24
-
CREATEUSER 'eusurveyuser'@'localhost' IDENTIFIED BY 'eusurveyuser';
27
+
CREATEUSER 'eusurveyuser'@'localhost' IDENTIFIED BY 'eusurveyuserpassword';
25
28
GRANT ALL PRIVILEGES ON eusurveydb.* TO 'eusurveyuser'@'localhost';
26
29
GRANT EVENT ON*.* TO 'eusurveyuser'@'localhost';
27
-
28
-
CREATEUSER 'eusurveyruser'@'localhost' IDENTIFIED BY 'eusurveyruser';
29
-
GRANT ALL PRIVILEGES ON eusurveyreportdb.* TO 'eusurveyruser'@'localhost';
30
30
```
31
31
32
32
3. Set Mysql variables
33
33
```sql
34
34
SET GLOBAL event_scheduler =ON;
35
-
SET GLOBAL log_bin_trust_function_creators =1;
36
-
SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED;
37
35
```
38
36
37
+
### Download source code
38
+
Either download EUSurvey's source code as a ZIP archive an extract its content or use git to clone the repository.
39
+
40
+
39
41
### Spring properties modification
40
42
Modify the spring properties from src/main/config file to match your requirements.
43
+
For the standard OSS version please modify src/main/config/oss.
44
+
If you want to use docker, please modify src/main/config/ossdocker.
41
45
42
46
### Run the application
43
47
Build EUSurvey's war using the following command:
44
48
```batch
45
49
mvn clean install -Denvironment=oss
46
50
```
47
-
48
-
Build & deploy the application on your tomcat manager using the following command:
49
-
```batch
50
-
mvn clean tomcat7:deploy
51
-
-Dtomcat.admin.password=your_tomcat_password
52
-
-Dtomcat.admin=your_tomcat_username
53
-
-Dtomcat.deploy.url=your_tomcat_url
54
-
-Denvironment=oss
55
-
```
51
+
Copy the war file from target/eusurvey.war to your Tomcat's webapps folder and restart Tomcat to automatically deploy the application.
0 commit comments