- checkout project classhub to C:\workspace\classhub
- in eclipse, new project for each sub directory:
- classhub-core
- classhub-api
- classhub-appserver
- classhub-web
- turn each project into Maven project, Maven->update project, and Run->Maven install
- Download and install Tomcat 7. https://tomcat.apache.org/download-70.cgi
- To run classhub, we need to run tomcat
- Note we change server.xml in tomcat to support SSL (https). Document can be found in classhub/classhub-web/ssl.
Essentially, we need to uncomment (enable) the SSL connector on port 8443:
<Connector SSLEnabled="true" ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA,SSL_RSA_WITH_RC4_128_SHA" clientAuth="false" keystoreFile="<<path_to_local.tomcat.keystore>>" keystorePass="storepass" maxThreads="150" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/>
Note that
<<path_to_local.tomcat.keystore>> should be the tomcat keystore file. It can be found in the <classhub-web project>/ssl directory
e.g. keystoreFile=’C:\workspace\classhub\classhub-web\ssl\local.tomcat.keystore’
- Also, ensure the folder C:/ClassHub exists with C:\ClassHub\DEVELOPMENT\site.properties, jdbc.properties and log4j.properties
- Before startup ClassHub locally, run AppServer8 locally. Make sure on the AppServer this API key has “GetSportLogicCustomerByCustomerId” permission.
- In mysql workbench, create a new database classhub_dev
- Create a user”classhub_user”, see user.sql file:
-- Create database user for NON-PRODUCTION.
CREATE USER 'classhub_user'@'localhost' IDENTIFIED BY 'pass';
-- GRANT SELECT,INSERT,DELETE,UPDATE ON classhub_dev.* to 'classhub_user'@'localhost';
GRANT ALL ON classhub_dev.* to 'classhub_user'@'localhost';
-- GRANT SELECT,INSERT,DELETE,UPDATE ON classhub_tst.* to 'classhub_user'@'%';
-- GRANT SELECT,INSERT,DELETE,UPDATE ON classhub_uat.* to 'classhub_user'@'%';
-- Is this user used? Is it required? probably not…
CREATE USER 'flyway'@'localhost' IDENTIFIED BY 'pass';
GRANT ALL ON classhub_dev.* to 'flyway'@'localhost';
FLUSH PRIVILEGES;