Welcome to the CoffeeClicker project!
This README provides all the necessary instructions to properly configure and run the application.
Before running the application, make sure you have the following installed:
- Java Development Kit (JDK)
- IntelliJ IDEA or any Java IDE of your choice
- MySQL
- Git (optional)
- Go to the "res" folder inside the project directory.
- Open the file named "Pixeled.ttf".
- Click the "Download" or "Install" button to install the font on your system.
-
Open the "lib" folder inside the project directory.
-
Add all the libraries inside this folder to your project.
- If using IntelliJ IDEA: Go to: File > Project Structure > Libraries > Add JARs or Directories, and include all the JAR files found in the "lib" folder.
-
Make sure MySQL is installed and running.
-
Open your terminal and type the following command:
mysql -u root -p
-
After entering your MySQL password, execute the following:
DROP DATABASE IF EXISTS cofeeclicker_schema; CREATE DATABASE cofeeclicker_schema; USE cofeeclicker_schema; SOURCE C:/DPO_P2_CoffeeClicker/sql/Dump20250514ultimaversion.sql;
NOTE: Update the path to the .sql file if your location differs inside of the folder named Database and swap the "/" for "".
- Open the "data" folder inside the project directory.
- Open the file named "ConfigurationFile.json".
- Locate the "password" field and replace its value with your actual MySQL database password.
You're all set! Once these steps are complete, you can run the project from your IDE.
Thank you for using CoffeeClicker!