Skip to content

Fatima4285/SubwayScreen

Repository files navigation

SubwayScreen

Please read the following information before compiling

How To Setup The Database:

  1. Download the advertisement.sql file provided in the src directory of the application
  2. Make sure MySQL is installed and configured on your laptop
  3. Navigate to your MySQL server's bin directory using command prompt
  4. Run the command "mysql -u root -p" and enter the password you set when configuring MySQL as prompted
  5. Enter the command "CREATE DATABASE advertisement;"
  6. Enter the command "CREATE USER 'Mahdi'@'3306' IDENTIFIED BY 'ensf380';"
  7. Enter the command "GRANT ALL PRIVILEGES ON advertisement.* TO 'Mahdi'@'3306';"
  8. Enter the command "EXIT;"
  9. Run the command "mysql -u Mahdi -p advertisement < c:/path/to/advertisement.sql" and enter the password 'ensf380' when asked (NOTE: make sure to replace c:/path/to/advertisement.sql with the actual path to the location where you have saved the advertisement.sql file)

How To Run The Program:

  1. Check if all JAR files in the image below are present
Screenshot 2024-08-04 at 10 14 18 PM

If you do not see the JAR files please do the following: Click classpath and then Add JARs Screenshot 2024-08-04 at 10 15 51 PM

Navigate to the libs folder in Project and add all the necessary JAR files. Then apply and close. Screenshot 2024-08-04 at 10 19 05 PM

  1. Next, go to run configurations
Screenshot 2024-08-04 at 10 20 40 PM
  1. Please enter a command line argument. Select a city name (like toronto) and a train number between 1 to 12. Select apply and then run. Screenshot 2024-08-04 at 10 22 32 PM

The program should run, please give it a few seconds to load. Also note that the test files are located in the src/test/java/ca/ucalgary/edu/ensf380 folder and can be run from there

ALSO, to view WeatherParser.java, please go into WeatherProject > src > ca.ucalgary.ensf380

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors