Installation for Windows
Intro
Bij de README voor het lokaal installeren van het Teqplay platform stonden alleen 'installation guides' voor Linux en Mac beschreven.
Om ook een beschrijving te hebben voor Windows, heb ik samen met Joost Laurman deze 'installation guide' voor Windows gemaakt.
Wiki
NOTE: If problems persist in any file, try changing the line endings to UNIX within IntelliJ. (probably communication.conf)
Download and install Java JDK 1.8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download Maven 3 from https://maven.apache.org/download.cgi
Add
M2_HOME
andMAVEN_HOME
to your system variables, pointing towardsC:\Program Files\Apache\Maven
or wherever you installed Maven.Download Mongo Community Server from https://www.mongodb.com/download-center#community
Open the environment variables again and open Path variable. Add
C:\Program Fies\MongoDB\Server\4.0\bin\
as a new entry to the path. (Please make sure the version matches the path)Create a keystore for the platform by running the command
keytool -genkey -alias tomcat -keyalg RSA
(if this doesn't work, add a new system variable JAVA_HOME, pointing to your Java JDK and add to the system variable Path the following:%JAVA_HOME%\bin
). Make sure the password is set to<password here>
.Checkout the authenticator.
<authenticator>
Inside the authenticator folder, build the project with the command
mvn clean install
.Checkout the platform.
<platform>
Inside the platform folder (not platform/platform), build the project with the command
mvn clean install
.After this finished (it could take up to 15 minutes) create or open the file
C:\Users\<username>\.m2\settings.xml
. In this file add the code found in appendix #1settings.xml
. This should enable you to run the platform without getting the error tomcat7 plugin could not be found.Open up a command prompt and go to the platform folder. Make sure the file is executable and do
init_admin_account.bat
to create the default admin account for the platform (username:<username>
, password:<password>
).Now open up IntelljIDEA. Do import project and select the platform folder. Select
import project from external model
and chooseMaven
. Click next. To the default settings on this screen add a check toSearch for projects recursively
andImport Maven projects automatically
. Click next. Make sure all the projects are checked and click on next. Now you have to select the project SDK. Click on the + icon. A popup opens. It should automatically found the JDK to use, click on open. It has now added 1.8 as a folder, click next and Finish. Now wait for a few minutes as it is now resolving all the dependencies. After a few minutes theapi
,communication
andplatform
project should appear.Add configurations. To run the project you should have 3 configurations. One to only run what is already build, one to build and run without testing and one to build and run with all tests. In the top menu bar go to
Run -> Edit Configurations
. Click on the+
icon and select Maven.
Name the first
clean install
.Working directory -> click on the folder icon and select master.
Command line ->
clean install tomcat7:run
Click apply
Name the second
skip tests
.Working directory -> click on the folder icon and select master.
Command line ->
clean install -Dmaven.test.skip=true tomcat7:run
Click apply
Name the third
run
.Working directory -> click on the folder icon and select master.
Command line ->
tomcat7:run
Click apply
You are now ready to develop the platform!