| 1 | = Build Instructions = |
| 2 | |
| 3 | === Prerequisites === |
| 4 | |
| 5 | * **Java Development Kit (JDK 17)** installed |
| 6 | * **Apache Maven** installed |
| 7 | * **Git** installed (if cloning from GitHub) |
| 8 | * **IntelliJ IDEA** (Recommended for ease of setup) |
| 9 | |
| 10 | === Setup Instructions === |
| 11 | |
| 12 | ==== 1. Clone the Repository ==== |
| 13 | {{{ |
| 14 | git clone https://github.com/gordon-v/growbridge-io.git |
| 15 | cd growbridge-io |
| 16 | }}} |
| 17 | |
| 18 | ==== 2. Open the Project in IntelliJ IDEA ==== |
| 19 | * Launch **IntelliJ IDEA** and open the pom.xml file. |
| 20 | * IntelliJ will automatically download all necessary dependencies. |
| 21 | * *If IntelliJ highlights SQL strings as *warnings**, you can ignore them for now. We will configure the database connection in the next steps. |
| 22 | |
| 23 | ==== 3. Configure Database Connection ==== |
| 24 | * Navigate to config/db.config. |
| 25 | * Fill in the required database connection details (e.g., HOST, NAME, USER). |
| 26 | These details will be used at runtime to establish a connection to the PostgreSQL database. |
| 27 | |
| 28 | ==== 4. Build and Run the Application ==== |
| 29 | * Open MarketingApp.java. |
| 30 | * Click the Run or Debug button to launch the application. |