- Git: https://git-scm.com
- Apache Tomcat 10.1: https://github.com/Green-Supermart/docs/blob/main/apache-tomcat-10.1.13.exe
- IntelliJ: https://www.jetbrains.com/idea/download
- xampp: https://www.apachefriends.org/download.html
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:
- Click the dropdown called Current File.
- Select Edit Configurations...
- Click the plus icon, and then select the Local from the Tomcat Server in the Run/Debug Configurations Window.
-
In the Application server, click Configure.. button.
-
Click the plus icon, then choose the path where Tomcat 10.1 is installed in the Tomcat Home and click OK after selecting.
-
Click the Fix button in the No artifacts marked for deployment error.
- Select java_backend:war exploded from the Select Artifacts to Deploy dialog.
- Clear the Application context field.
- Go to Server tab, select these configurations.
- Click Apply and then OK.
Step 5: Start Apache and MySQL services from xampp.
Step 6: Setup database with phpMyAdmin method to import content to the database and load to the website:
-
Go to phpMyAdmin: http://localhost/phpmyadmin
-
Select the Import tab, input the sql file and then click Import.
- 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.