Team Zenith Repository for Spring 2016 I590 Class
-
Pull branch Milestone-4 into local system
-
Build the project using Maven build tool, Either use terminal and type "mvn build" or use eclipse and choose "Maven Install"
-
Server Configuration
-
Create Keystore and Self-signed Certificate C:\jdk\bin>keytool -genkey -alias srccodes -keyalg RSA -keystore c:\tomcat7\conf\srccodes.jks
* -keystore Filepath (say "c:\tomcat7\conf\srccodes.jks") where keystore file will be generated. * keystore password Password of the keystore to be used by Tomcat. If not provided, then default is "changeit". * key password Password of the self-signed certificate generated in the keystore. If not provided, then it'll be same as keystore password. -
Tomcat Configuration
* Open <tomcat-installation-directory>/conf/server.xml in a text editor. * Replace the existing connector with the following ```<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="conf/srccodes.jks" keystoreType="JKS" keystorePass="pass4keystore" keyPass="pass4key" /> ``` * Provide keystoreFile, keystorePass and keyPass values as given in Step #1. -
To run the application on Server's root context, remove existing root folder from "webApps" folder and rename the generated application War file to "ROOT.war"
-
-
Database Configuration
- Install mysql community server using the following command: sudo apt-get install mysql-server
- Please make a note of the password.Default username is root.
- Test the connection by logging into mysql using the command: mysql -u root -p
- Open the Workbench and run the DDL.txt text file provided inside the project folder
- Modify the application.properties present in GatewayApp/src/main/resources by editing the following line with your DB information: spring.datasource.url=jdbc:mysql://localhost:3306/zenith spring.datasource.username=root spring.datasource.password=demo
- You need to change only the username and password as the database name here is zenith and default port is 3306.
-
Please contact me for the api key file, and place the apiKey.properties file in "%USERHOME%\.stormpath" for windows and "~/.stormpath/" folder in Linux Operating system.
-
Run the tomcat server and navigate browser to "https://localhost:8443/"
-
Create a new account by navigating to the Create Account link. While account creation, please provide the username as the username which is used to login to Karst/BigRed2. This will be the username without the @iu.edu extension.
-
Login to the application with the newly created username and password
-
Once successfully logged in, the interface will display options to Submit, Monitor, Cancel jobs and Download job files
-
Please note that the username that is used for login has to be used as the username for job submission as well.
-
For testing GROMACS, we have provided the GROMACS input files within the gromacs folder inside the project folder.