wiki/onboarding.md
... ...
@@ -1,102 +1,103 @@
1
-# OnBoarding Information
2
-
3
-This document describes the onboarding process for a new team member (developer)
4
-
5
-### Race Analysis Development Setup
6
-
7
-#### Installations
8
-
9
-1. Eclipse (e.g. Eclipse Classic 4.2.1 (Juno)), http://www.eclipse.org
10
-2. Eclipse Extensions
11
- * Install Eclipse GWT should be version 2.5 (https://developers.google.com/eclipse/docs/download)
12
-3. Git (e.g. msysGit for Windows v1.7.10), http://git-scm.com
13
-4. MongoDB (e.g. Production Release 2.0.4), download: http://www.mongodb.org/
14
-5. RabbitMQ, download from http://www.rabbitmq.com/. Requires Erlang to be installed. RabbitMQ installer will assist in installing Erlang.
15
-6. JDK 1.6 (Java SE 6), http://jdk6.java.net (for GWT)
16
-7. JDK 1.7 (Java SE 7), http://jdk7.java.net
17
-8. Maven 3, http://maven.apache.org
18
-
19
-#### Further optional but recommended installations
20
-
21
-1. Cygwin, http://www.cygwin.com/
22
-2. Eclipse Mylyn Bugzilla extension
23
-3. kdiff3 (git tool)
24
-4. Firebug (javascript & .css debugging)
25
-
26
-#### Accounts
27
-
28
-1. Git Account
29
-- Register yourself as a Git user in the SAP-Git under: https://git.wdf.sap.corp:8080/
30
-- Ask the Git administrator (Axel Uhl) to get on the list of enabled committers
31
-
32
-2. Bugzilla
33
-- Ask the Bugzilla administrator (Frank Mittag, Axel Uhl) to create a bugzilla account for you.
34
-- Bugzilla url: http://sapcoe-app01.pironet-ndh.com/bugzilla/
35
-
36
-3. Race Analysis user
37
-- Add yourself as an user to the Race Analysis suite by adding a Jetty user in the file
38
- java\target\configuration\jetty\etc\realm.properties
39
-
40
-#### Steps to build and run the Race Analysis Suite
41
-
42
-1. Get the content of the git repository
43
-- Clone the repository to your local file system from `ssh://[SAP-User]@git.wdf.sap.corp:29418/SAPSail/sapsailingcapture.git` or `ssh://[user]@sapsailing.com/home/trac/git`
44
-
45
-2. Check out the 'master' branch from the git repository. The 'master' branch is the main development branch. Please check that you start your work on this branch.
46
-
47
-3. Setup and configure Eclipse
48
- - Make absolutely sure to import CodeFormatter.xml (from $GIT_HOME/java) into your Eclipse preferences (Preferences->Java->Code Style->Fortmatter)
49
- - Install the Eclipse GWT-Plugin (now called Google Plugin for Eclipse, you need the Gogle WebToolkit SDK from the same update site, too)
50
- - Install Eclipse eGit (optional)
51
- - Check that JDK 1.7 is available and has been set for compilation in Eclipse
52
- - Check that the both JDKs are available (Windows->Preferences->Java->Installed JREs)
53
- - Check that JDK 1.6 has been matched to JavaSE-1.6 and that JDK 1.7 has been matched to JavaSE-1.7 (...>Installed JREs>Execution Environments)
54
- - It is also possible to match the SAPJVM 6 or 7 to the JavaSE-1.6 (for profiling purposes)
55
- - Import all Race Analysis projects from the /java(!!!) subdirectory of the git main folder
56
- - Set the Eclipse target platform to race-analysis-p2-ide-local.target (located in com.sap.sailing.targetplatform/definitions)
57
- - Wait until the target platform has been resolved completely
58
- - In the project com.sap.sailing.gwt.ui create a new subfolder "classes" in the folder WEB-INF
59
- - Rebuild all projects
60
-
61
-4. Run the Race Analysis Suite
62
- - Start the MongoDB
63
- - Start the appropriate Eclipse launch configuration (e.g. 'Sailing Server (Proxy)')
64
- - Start the GWT UI
65
-
66
-5. Within the Race Analysis Suite
67
- - For TracTrac Events: (Date 27.11.2012) Use Live URI tcp://10.18.22.156:4412, Stored URI tcp://10.18.22.156:4413, JSON URL http://germanmaster.traclive.dk/events/event_20120905_erEuropean/jsonservice.php
68
- - Press List Races
69
-
70
-#### Maven Setup
71
-Copy the settings.xml from the top-level git folder to your ~/.m2 directory and adjust the proxy settings accordingly. Make sure the mvn executable you installed above is in your path. Open a shell (preferrably a git bash or a cygwin bash), cd to the java/ subfolder of the git workspace and issue "mvn -fae clean install". This should build the software and run all the tests. If you want to avoid the tests being executed, run "mvn -Dmaven.test.skip=true -fae clean install". If you want to make sure the GWT compiler really re-builds all artifacts, remove all java/com.sap.sailing.gwt.ui/com.sap.sailing.gwt.ui.* directories, then re-build.
72
-
73
-#### Further hints
74
-- Configure Eclipse to use Chrome or Firefox as the default browser
75
-- Install the GWT Browser Plugin (Chrome or Firefox) for the GWT Development mode
76
-
77
-#### Additional steps required for Android projects
78
-
79
-To ensure that all components of the Analysis Suite are working, you should also import all Android projects into your workspace. There are some additional requirements to enable the build process of these projects.
80
-
81
-1. Add the Android Development Tools (ADT) plugin to your Eclipse IDE
82
- - In Eclipse click Help -> Install New Software -> Add and enter https://dl-ssl.google.com/android/eclipse/
83
- - Select the Developer Tools and install
84
- - After restarting Eclipse the "Welcome to Android Development" window should help you with installing the Android SDK
85
- - It is also possible to download the Android SDK separately from http://developer.android.com/sdk/index.html ("Use an existing IDE")
86
-2. Setup the Android SDK
87
- - In Eclipse press Window -> Android SDK Manager
88
- - Ensure that everything of "Tools" is installed
89
- - Install everything of "Android 3.2 API 13"
90
- - Install "Android Support Library" (Extras), "Google Play Services" (Extras) and "Google USB Driver" (Extras)
91
-3. Import the Android projects into your workspace
92
- - Android projects can be found in the /mobile subdirectory
93
-
94
-To deploy an Android project (for example com.sap.sailing.racecommittee.app) to a device
95
-1. Plug-in the device
96
- - Development mode must be enabled on the device
97
- - For certain device/OS combinations additional device drivers are needed
98
- - You can check if the device is detected correctly by checking the "Devices" tab of the "DDMS" Eclipse perspective.
99
-2. Start a run configuration of the project
100
-3. Select your attached device in the device selection screen
101
-4. The app should be started after deployment
102
-
1
+# OnBoarding Information
2
+
3
+This document describes the onboarding process for a new team member (developer)
4
+
5
+### Race Analysis Development Setup
6
+
7
+#### Installations
8
+
9
+1. Eclipse (e.g. Eclipse Classic 4.2.1 (Juno)), http://www.eclipse.org
10
+2. Eclipse Extensions
11
+ * Install Eclipse GWT should be version 2.5 (https://developers.google.com/eclipse/docs/download)
12
+3. Git (e.g. msysGit for Windows v1.7.10), http://git-scm.com
13
+4. MongoDB (e.g. Production Release 2.0.4), download: http://www.mongodb.org/
14
+5. RabbitMQ, download from http://www.rabbitmq.com/. Requires Erlang to be installed. RabbitMQ installer will assist in installing Erlang.
15
+6. JDK 1.6 (Java SE 6), http://jdk6.java.net (for GWT)
16
+7. JDK 1.7 (Java SE 7), http://jdk7.java.net
17
+8. Maven 3, http://maven.apache.org
18
+
19
+#### Further optional but recommended installations
20
+
21
+1. Cygwin, http://www.cygwin.com/
22
+2. Eclipse Mylyn Bugzilla extension
23
+3. kdiff3 (git tool)
24
+4. Firebug (javascript & .css debugging)
25
+
26
+#### Accounts
27
+
28
+1. Git Account
29
+- Register yourself as a Git user in the SAP-Git under: https://git.wdf.sap.corp:8080/
30
+- Ask the Git administrator (Axel Uhl) to get on the list of enabled committers
31
+
32
+2. Bugzilla
33
+- Ask the Bugzilla administrator (Frank Mittag, Axel Uhl) to create a bugzilla account for you.
34
+- Bugzilla url: http://sapcoe-app01.pironet-ndh.com/bugzilla/
35
+
36
+3. Race Analysis user
37
+- Add yourself as an user to the Race Analysis suite by adding a Jetty user in the file
38
+ java\target\configuration\jetty\etc\realm.properties
39
+
40
+#### Steps to build and run the Race Analysis Suite
41
+
42
+1. Get the content of the git repository
43
+- Clone the repository to your local file system from `ssh://[SAP-User]@git.wdf.sap.corp:29418/SAPSail/sapsailingcapture.git` or `ssh://[user]@sapsailing.com/home/trac/git`
44
+
45
+2. Check out the 'master' branch from the git repository. The 'master' branch is the main development branch. Please check that you start your work on this branch.
46
+
47
+3. Setup and configure Eclipse
48
+ - Make absolutely sure to import CodeFormatter.xml (from $GIT_HOME/java) into your Eclipse preferences (Preferences->Java->Code Style->Fortmatter)
49
+ - Install the Eclipse GWT-Plugin (now called Google Plugin for Eclipse, you need the Gogle WebToolkit SDK from the same update site, too)
50
+ - Install Eclipse eGit (optional)
51
+ - Check that JDK 1.7 is available and has been set for compilation in Eclipse
52
+ - Check that the both JDKs are available (Windows->Preferences->Java->Installed JREs)
53
+ - Check that JDK 1.6 has been matched to JavaSE-1.6 and that JDK 1.7 has been matched to JavaSE-1.7 (...>Installed JREs>Execution Environments)
54
+ - It is also possible to match the SAPJVM 6 or 7 to the JavaSE-1.6 (for profiling purposes)
55
+ - Import all Race Analysis projects from the /java(!!!) subdirectory of the git main folder
56
+ - Set the Eclipse target platform to race-analysis-p2-ide-local.target (located in com.sap.sailing.targetplatform/definitions)
57
+ - Wait until the target platform has been resolved completely
58
+ - In the project com.sap.sailing.gwt.ui create a new subfolder "classes" in the folder WEB-INF
59
+ - Rebuild all projects
60
+
61
+4. Run the Race Analysis Suite
62
+ - Start the MongoDB
63
+ - Start the appropriate Eclipse launch configuration (e.g. 'Sailing Server (Proxy)')
64
+ - Start the GWT UI
65
+
66
+5. Within the Race Analysis Suite
67
+ - For TracTrac Events: (Date 27.11.2012) Use Live URI tcp://10.18.22.156:4412, Stored URI tcp://10.18.22.156:4413, JSON URL http://germanmaster.traclive.dk/events/event_20120905_erEuropean/jsonservice.php
68
+ - Press List Races
69
+
70
+#### Maven Setup
71
+Copy the settings.xml from the top-level git folder to your ~/.m2 directory and adjust the proxy settings accordingly. Make sure the mvn executable you installed above is in your path. Open a shell (preferrably a git bash or a cygwin bash), cd to the java/ subfolder of the git workspace and issue "mvn -fae clean install". This should build the software and run all the tests. If you want to avoid the tests being executed, run "mvn -Dmaven.test.skip=true -fae clean install". If you want to make sure the GWT compiler really re-builds all artifacts, remove all java/com.sap.sailing.gwt.ui/com.sap.sailing.gwt.ui.* directories, then re-build.
72
+
73
+#### Further hints
74
+- Configure Eclipse to use Chrome or Firefox as the default browser
75
+- Install the GWT Browser Plugin (Chrome or Firefox) for the GWT Development mode
76
+
77
+#### Additional steps required for Android projects
78
+
79
+To ensure that all components of the Analysis Suite are working, you should also import all Android projects into your workspace. There are some additional requirements to enable the build process of these projects.
80
+
81
+1. Add the Android Development Tools (ADT) plugin to your Eclipse IDE
82
+ - In Eclipse click Help -> Install New Software -> Add and enter https://dl-ssl.google.com/android/eclipse/
83
+ - Select the Developer Tools and install
84
+ - After restarting Eclipse the "Welcome to Android Development" window should help you with installing the Android SDK
85
+ - It is also possible to download the Android SDK separately from http://developer.android.com/sdk/index.html ("Use an existing IDE")
86
+2. Setup the Android SDK
87
+ - In Eclipse press Window -> Android SDK Manager
88
+ - Ensure that everything of "Tools" is installed
89
+ - Install everything of "Android 3.2 API 13"
90
+ - Install "Android Support Library" (Extras), "Google Play Services" (Extras) and "Google USB Driver" (Extras)
91
+3. Import the Android projects into your workspace
92
+ - Android projects can be found in the /mobile subdirectory
93
+
94
+To deploy an Android project (for example com.sap.sailing.racecommittee.app) to a device
95
+
96
+1. Plug-in the device
97
+ - Development mode must be enabled on the device
98
+ - For certain device/OS combinations additional device drivers are needed
99
+ - You can check if the device is detected correctly by checking the "Devices" tab of the "DDMS" Eclipse perspective.
100
+2. Start a run configuration of the project
101
+3. Select your attached device in the device selection screen
102
+4. The app should be started after deployment
103
+