Skip to content

Faizi-AdnanFahad/EECS4413_Group_Project_WS

Repository files navigation

EECS4413_Group_Project_WS

Project Setup

Prerequisites

Setup

  1. Clone project
git clone https://github.com/Faizi-AdnanFahad/EECS4413_Group_Project_WS.git
  1. Import projects into eclipse and then sync maven dependencies https://maven.apache.org/
  2. Click on import in eclipse > General, the click on Exisiting projects into workspace. figure 1
  3. Select a root directory and browse to the location of the electricVehicleSystem project that was cloned from the repository
  • figure 2
  1. Setup the tomcat server by clicking new > other
  • figure 3
  1. Select the Server
  • figure 4
  1. Choose Tomcat 10.1 server.
  • figure 5
  1. Browse to the location of downloaded Tomcat driver downloaded.
  • figure 6
  1. Click on the tomcat server and change the admin port to 8005
  • figure 7
  1. Set your eclipse working directory to be the project root folder (Important for retrivering the data from the SQLlite database)
  • Click on Run > Run Configuration
    • figure 8
  • Go to arguments tab
    • figure 9
  • Click on other and then File System and set your eclipse working directory to be the project root folder
    • figure 10

Important If step 12 is not followed correctly, the website will not show the data from the database. In this case, you can set the path to the database to the absolute path.

  • Go to \electricVehicleSystem\src\main\webapp\META-INF\context.xml
  • Put the absolute path in the url="jdbc:sqlite" + "absolute path of the electricVehcileSystem.db" which exists in the project root folder.
  1. Funally, you can run the application on the Tomcat server.
  • figure 10

Additionally, the project is deployed on the AWS cloud with EC2 on the following link: http://54.166.233.199/electricVehicleSystem/ However, according to the credit given on AWS, the lab and machine should be running when the trying to access the above link which is only accessible for 4 hours.