Skip to content

Green-Supermart/GREEN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions Manual to Launch the Website


Prerequisites

  1. Git: https://git-scm.com
  2. Apache Tomcat 10.1: https://github.com/Green-Supermart/docs/blob/main/apache-tomcat-10.1.13.exe
  3. IntelliJ: https://www.jetbrains.com/idea/download
  4. xampp: https://www.apachefriends.org/download.html

Instructions

Step 1: Install the relevant applications from the given links.


Step 2: Open Git bash and clone the GREEN Supermart repository:

git clone https://github.com/Green-Supermart/GREEN.git

Step 3: Open cloned repository folder with IntelliJ.


Step 4: Setup IntelliJ to run the website:

  1. Click the dropdown called Current File.

Screenshot 1

  1. Select Edit Configurations...

Screenshot 2

  1. Click the plus icon, and then select the Local from the Tomcat Server in the Run/Debug Configurations Window.

Screenshot 3

  1. In the Application server, click Configure.. button.

  2. Click the plus icon, then choose the path where Tomcat 10.1 is installed in the Tomcat Home and click OK after selecting.

  3. Click the Fix button in the No artifacts marked for deployment error.

Screenshot 4

  1. Select java_backend:war exploded from the Select Artifacts to Deploy dialog.

Screenshot 5

  1. Clear the Application context field.

Screenshot 6

  1. Go to Server tab, select these configurations.

Screenshot 7

  1. Click Apply and then OK.

Step 5: Start Apache and MySQL services from xampp.

Screenshot 8


Step 6: Setup database with phpMyAdmin method to import content to the database and load to the website:

  1. Go to phpMyAdmin: http://localhost/phpmyadmin

  2. Select the Import tab, input the sql file and then click Import.

Screenshot 9

  1. After importing, there should be 3 Tables in the database as products, orders, and user.

Step 7: Run the project in IntelliJ.


Step 7: Now the website should launch in the web browser.