Made by Shuai Zheng Advisor: Prof. Homayoun Yousefi'zadeh
Prerequement:
To simulate the website, below are required:
-
Java JDK 1.7 Can be downloaded from webite: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
-
IntelliJ [Ultimate] Edition, which is cross platform IDEA and could be used in Windows, Mac, Linux system Can be acquired using student account and download at: https://www.jetbrains.com/idea/
-
Apache Tomcat 8 Can be downloaded from website: http://tomcat.apache.org/download-80.cgi
-
MySQL Can be downloaded from website: https://www.mysql.com/downloads/
-
MySQL WorkBench Can be downloaded from website: https://www.mysql.com/products/workbench/
Usage:
With above preparation done, simulate the website with following steps:
-
Choose the Project folder you've saved to, click "OK". below is the example location that I used.
-
Check the box in front of "Import Maven projects automatically"
-
Click "next"
-
Click the "+" bottom, choose "JDK"
-
Choose the jdk 1.7 file folder you saved to. below is the example location of my jdk 1.7.0_80
-
Click "OK"
-
Click "finish"
-
On the top right corner, click the second icon, press "Edit Configurations"
-
Click the "+" bottom, choose Tomcat Server - Local. Note that if you are using Community version of IntelliJ, you won't have this option. So make sure you are using the Ultimate version.
To Run MachineLearning, add VM Option in IntelliJ.
-
click configure, click +, and select the path that Tomcat download :
-
Copy and paste VM Option, click "OK" click the fix button to select war exploded:
now you should be able to run Machine Learning algorithm.
-
go to https://console.aws.amazon.com and then create a free account (account creation process may be changed since it uses 2-step verification).
-
sign in to Amazon AWS from https://console.aws.amazon.com and find "ElasticBeans Talk" under "Deployment & Management".
-
After that you may see an empty page, just click "Create a new Application" from right corner side of the page. Enter your information and then just simply click your new created environment.
-
After that you can upload and deploy ".war" files to this free account.
-
access web pages in a browser after running the content in a third party serve. My Demo Sample-env-2.xmxbdjuc3w.us-west-2.elasticbeanstalk.com
-
Need to create table in the MySQL, click Management. In the Data import, create the scheme and use the file src/main/java/com/websystique/springmvc/MySQLDB/db.sql to import data
-
Click src/main/java/com/websystique/springmvc/configuration/springJDBCConfig.java to input the url, username, and password to access your local database.
-
after download Tomcat from http://tomcat.apache.org/download-80.cgi, click setup, select host manager and examples.
-
record username and password, because you need to use username and password to access Tomcat host manager.
-
click start to launch Tomcat
-
After you put http://localhost:8080/, below images appears, shown it succeeds to launch Tomcat. After that, click the Manager App to access deploy.
-
give the input and path to the war.
-
Successful!!!!
- deeplearning4j:https://deeplearning4j.org/
- Spring 4 MVC+Apache Tiles 3 Example: http://websystique.com/springmvc/spring-4-mvc-apache-tiles-3-annotation-based-example/