Skip to content

JavaWebShop Uni | educational content | not for prod

License

Notifications You must be signed in to change notification settings

ksaadDE/JavaWebShop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestFaces KochsShop

Licensed under SAAD EDUCATIONAL LICENSE

This is a educational TestShop Project. I've created it during my studies at IUBH Distance Learning, based on the Course materials with my own favors. You should strongly ONLY use it for educational purposes, no warranty for anything!

Installation

System Requirements

  • Linux Ubuntu (tested in VirtualBox VM)
  • Package mysql-server (tested)
  • Package mysql-client (tested)
  • Eclipse IDE (tested)
  • Tomcat created by Eclipse (tested)
  • git client (tested)

Installing the Requirements on Linux VM

sudo apt-get install openjdk-11-jre -y 
sudo apt-get install openjdk-11-jdk -y
sudo apt-get install mysql-client mysql-server -y 
sudo apt-get install git -y
sudo apt-get install eclipse -y

Tomcat Installation

Inside of Eclipse [TESTED!]

  1. Start Eclipse
  2. go to the servers Tab
  3. click on add new Server
  4. Do your options (chosing the install folder, downloading the Tomcat etc.)
  5. Afterwards you can use it inside Eclipse via the Servers Tab (maybe you have to select Java EE Views)

No Eclipse (Linux Service, systemctl)

  1. sudo apt-get install tomcat9 -y
  2. Now configure it with Eclipse (maybe with help by StackOverflow, DuckDuckGo or YouTube)
  3. Same as above (inside Eclipses Server Tab)

Database Setup (MySQL, shop.sql) [TESTED!]

  1. since you've installed client & server above:
  2. cd <path/to/project>
  3. sudo mysql < shop.sql

Installing the Code of this project [TESTED!]

  1. open the Terminal
  2. navigate via cd to the folder where you wish the files (e.g. /home//eclipse-workspace/)
  3. git clone https://github.com/ksaadDE/JavaWebShop/
  4. start Eclipse and import the Project by clicking in the top Menubar "File" -> "Open Projects from FileSystem"
  5. Select the right Server for the Project (greenarrow + select the server + check the "always use this.. for this project" checkbox)
  6. Have fun <3

Usage

  1. Installing
  2. Goto: http://localhost:8080/TestFaces/faces/index.xhtml
  3. If you wish: Login as test:test or admin:admin (!)
  • NOTE: don't use /TestFaces/ or /TestFaces/faces/ as entry, there's no index configured!
  • Maybe you are lucky and you can fix it!

Advanced Config

If you wish to modify the DB Credentials

  • edit the Credentials inside /src/config/config.properties Keep in mind if you've used the shop.sql your default Creds are "test" with no password, Port 3306 and Host as localhost

Licenses / Legal Section

Third Party hard work

My work - SAAD-Educational-License

(contribution & only for Educational purposes)

for the Lic itself read the LICENSE file inside this repo, please!

Quick Links:

Java Doc

https://github.com/ksaadDE/JavaWebShop/tree/master/javadoc

Java Source

https://github.com/ksaadDE/JavaWebShop/tree/master/src

WebContent

https://github.com/ksaadDE/JavaWebShop/tree/master/WebContent

About

JavaWebShop Uni | educational content | not for prod

Resources

License

Stars

Watchers

Forks