You need the Ultimate version of IntelliJ. You can get that through the School of Engineering. Look at the [Essential Software] for specific instructions for how to get that.
You need the Ultimate version of IntelliJ. You can get that through the School of Engineering. Look at the \[Essential Software\] for specific instructions for how to get that.
# Importing into IntelliJ
# Importing into IntelliJ
$\textcolor{red}{\text{You need to import the project that is in the FreshmanRPG folder within the repository.}}$
$`\textcolor{red}{\text{You need to import the project that is in the FreshmanRPG folder within the repository.}}`$
Click the link below to learn how to import the project. [Importing a project into IntelliJ](https://www.jetbrains.com/help/idea/import-project-or-module-wizard.html)
# Run Configurations Setup
Click the link below to learn how to import the project. [Importing a project into IntelliJ](https://www.jetbrains.com/help/idea/import-project-or-module-wizard.html)
# Run Configurations Setup
## Creating a run configuration
## Creating a run configuration
After you have imported the project into IntelliJ, you will need to create a few run configurations.
There will already be a few loaded, so below are the steps to create a new one.
1) First, click the "Edit Configurations..." button in the top right of the window, which will open a window titled "Run/Debug Configurations".
After you have imported the project into IntelliJ, you will need to create a few run configurations.\
The image below will guide you to the correct location.
There will already be a few loaded, so below are the steps to create a new one.
| Old Main | Server | `GameServer.main` | --port="1887" --map="oldMainInside.tmx | FreshmanRPG/GameServer|
| Old Main | Server | `GameServer.main` | \--port="1887" --map="oldMainInside.tmx | FreshmanRPG/GameServer |
| Restful Server | Server | `GameServer.main` | --localhost --restfulServer | FreshmanRPG/GameServer |
| Restful Server | Server | `GameServer.main` | \--localhost --restfulServer | FreshmanRPG/GameServer |
# Connecting to Your Local Database
# Connecting to Your Local Database
---
---
### Open the menu to create a new connection.
### Open the menu to create a new connection.
---
---
1) In IntelliJ Ultimate, open the database tab in the top right.
1) In IntelliJ Ultimate, open the database tab in the top right.
2) In the top-left of the panel that opened, click the `+`.
2) In the top-left of the panel that opened, click the `+`.
1) Hover over `Data Source` and select `MySQL` in the context menu that appears.
1) Hover over `Data Source` and select `MySQL` in the context menu that appears.
3) Setting the parameters:
3) Setting the parameters:
1) Set the port to 3308
1) Set the port to 3308
2) Set the User to frpg
2) Set the User to frpg
3) Set the Password to Database_Password
3) Set the Password to Database_Password
4) Click `Test Connection`
4) Click `Test Connection`
1) If the connection fails, please verify that you entered the correct credentials
1) If the connection fails, please verify that you entered the correct credentials
5) Viewing Your Local Database:
5.) Viewing Your Local Database
1) Click on the `Schemas` section.
1) Click on the 'Schemas' section.
2) Check 'frpg' and apply.
2) Check 'frpg' and apply.
### Click OK and enjoy your database access
### Click OK and enjoy your database access
# Connecting to the Production Database
# Connecting to the Production Database
---
---
### Open the menu to create a new connection.
### Open the menu to create a new connection.
---
---
1) In IntelliJ Ultimate, open the database tab in the top right.
1) In IntelliJ Ultimate, open the database tab in the top right.
2) In the top-left of the panel that opened, click the `+`.
2) In the top-left of the panel that opened, click the `+`.
1) Hover over `Data Source` and select `MySQL` in the context menu that appears.
1) Hover over `Data Source` and select `MySQL` in the context menu that appears.
### Open the SSH/SSL tab of the creation window. This is only required if connecting to the production database.
### Open the SSH/SSL tab of the creation window. This is only required if connecting to the production database.
---
---
1) Click on the checkbox labeled `Use SSH Tunnel` and then click the `...` to the right of the dropdown list.
1) Click on the checkbox labeled `Use SSH Tunnel` and then click the `...` to the right of the dropdown list.
2) In the screen that appears, click the `+` in the top-left
2) In the screen that appears, click the `+` in the top-left
3) Enter the following information:
3) Enter the following information:
...
@@ -97,20 +99,24 @@ The environment variables text box in each run configuration should contain: `IN
...
@@ -97,20 +99,24 @@ The environment variables text box in each run configuration should contain: `IN
Request login information from Dr. Wellington
Request login information from Dr. Wellington
4) Click `Test Connection`
4) Click `Test Connection`
1) If the connection fails, please verify that you entered the correct credentials
1) If the connection fails, please verify that you entered the correct credentials
### Open the General tab of the creation window.
### Open the General tab of the creation window.
---
---
1) Enter the following information:
1) Enter the following information:
Request login information from Dr. Wellington
Request login information from Dr. Wellington
2) Under the text boxes that you just changed, click `Test Connection`
2) Under the text boxes that you just changed, click `Test Connection`
1) If the connection fails, please verify that you entered the correct credentials
1) If the connection fails, please verify that you entered the correct credentials
### Open the Schemas tab of the creation window.
### Open the Schemas tab of the creation window.
---
---
1) Click the box labeled `frpg` until a checkmark appears.
1) Click the box labeled `frpg` until a checkmark appears.
1) If you do not see the above-mentioned label, give IntelliJ a minute to connect to the database or try to reopen the window to save the configuration.
1) If you do not see the above-mentioned label, give IntelliJ a minute to connect to the database or try to reopen the window to save the configuration.