Skip to content

Latest commit

 

History

History
155 lines (92 loc) · 5.27 KB

README.md

File metadata and controls

155 lines (92 loc) · 5.27 KB

SeniorProject

Made by Shuai Zheng Advisor: Prof. Homayoun Yousefi'zadeh

Prerequement:

To simulate the website, below are required:

  1. Java JDK 1.7 Can be downloaded from webite: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html Screenshot

  2. 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/

  3. Apache Tomcat 8 Can be downloaded from website: http://tomcat.apache.org/download-80.cgi

  4. MySQL Can be downloaded from website: https://www.mysql.com/downloads/

  5. MySQL WorkBench Can be downloaded from website: https://www.mysql.com/products/workbench/

Usage:

With above preparation done, simulate the website with following steps:

  1. Open IntelliJ IDEA, Click "Import Project". idea_00

  2. Choose the Project folder you've saved to, click "OK". below is the example location that I used. idea_01

  3. Choose Maven, click "next" idea_02

  4. Check the box in front of "Import Maven projects automatically" idea_03 idea_03a

  5. Click "next"

    idea_04

  6. Click the "+" bottom, choose "JDK"

  7. Choose the jdk 1.7 file folder you saved to. below is the example location of my jdk 1.7.0_80 idea_06

  8. Click "OK"

  9. Click "finish"

    idea_08

  10. On the top right corner, click the second icon, press "Edit Configurations" idea_09

  11. 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. idea_10

    To Run MachineLearning, add VM Option in IntelliJ.

  12. click configure, click +, and select the path that Tomcat download : idea_40

  13. Copy and paste VM Option, click "OK" click the fix button to select war exploded: idea_41

now you should be able to run Machine Learning algorithm.
  1. click ok. idea_11

  2. click button to run

    idea_13

  3. Build Artifacts idea_50

  4. click Build and generate .war file idea_51

Deploy to the third party (option1)

  1. 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).

  2. sign in to Amazon AWS from https://console.aws.amazon.com and find "ElasticBeans Talk" under "Deployment & Management". idea_52

  3. 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. idea_53

  4. After that you can upload and deploy ".war" files to this free account. idea_53

  5. 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 idea_55

Deploy to the third party (option2)

  1. 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

    idea_57

  2. Click src/main/java/com/websystique/springmvc/configuration/springJDBCConfig.java to input the url, username, and password to access your local database.

    idea_58

  3. after download Tomcat from http://tomcat.apache.org/download-80.cgi, click setup, select host manager and examples.

    idea_56

  4. record username and password, because you need to use username and password to access Tomcat host manager.

    idea_91

  5. click start to launch Tomcat

    idea_92

  6. After you put http://localhost:8080/, below images appears, shown it succeeds to launch Tomcat. After that, click the Manager App to access deploy.

    idea_93

  7. give the input and path to the war.

    idea_93

  8. Successful!!!!

    idea_93

References:

  1. deeplearning4j:https://deeplearning4j.org/
  2. Spring 4 MVC+Apache Tiles 3 Example: http://websystique.com/springmvc/spring-4-mvc-apache-tiles-3-annotation-based-example/