Setup
SoulsJP edited this page Aug 9, 2023
·
22 revisions
Here is a list of tools required for the Azure v316 project.
You may need to download them if you don't already have them installed
- Git - Version Control Software
- For advanced users
- You can use the following command:
choco install git
if you are using Chocolatey to manage your software - Otherwise, install using the instructions from the Git Website
-
GitHub Desktop/Sourcetree/GitHub CLI (OPTIONAL) - Git Desktop Client
- Beginner-friendly option
- Java 20 JDK - SDK for Development
- IntelliJ - Java IDE
-
MariaDB & HeidiSQL - Database Management and Administration
- OR MySQL Workbench & WAMP/XAMP
- Azure v316 Server Source Code - See Setup Guide below for instructions
- Azure v316 Client - Test Client for Localhost
Target | Tested | |
---|---|---|
Java SDK Version | Java 8 Update 231 | Java 20 |
IDE | IntelliJ | IntelliJ |
DB Management System | MariaDB | MySQL 5.7.28 |
DB Administration Tool | HeidiSQL | MySQL Workbench 8.0 CE with WAMP 3.2 |
*If a tool is not listed in the table, its version doesn't matter.
Here are 3 ways you can do this:
- Make sure you have GitHub Desktop installed
- In the toolbar, click
File
->Clone repository...
- Alternatively use the keyboard shortcut Ctrl+Shift+O
- Alternatively use the keyboard shortcut Ctrl+Shift+O
- Click on the URL tab, and paste in
https://github.com/SoulGirlJP/AzureV316
- Set the Local path as the folder where you want the source code to be stored
- Click Clone
- Make sure you have Sourcetree installed
- In the toolbar, click
File
->Clone/New...
- Alternatively use the keyboard shortcut Ctrl+N
- Alternatively use the keyboard shortcut Ctrl+N
- In the Source Path/URL field, paste in
https://github.com/SoulGirlJP/AzureV316
- In the Destination Path field, select the folder where you want the source code to be stored
- Click Clone
- Make sure you have
Git
installed- You can use the following command:
choco install git
if you are using Chocolatey to manage your software - Otherwise, install using the instructions from the Git Website
- You can use the following command:
- Navigate to the folder you want to use
- E.g.
cd server_tools/azure
- E.g.
- Clone the repository
- HTTPS:
git clone https://github.com/SoulGirlJP/AzureV316
- SSH:
git clone git@github.com:SoulGirlJP/AzureV316.git
- GitHub CLI:
gh repo clone SoulGirlJP/AzureV316
- HTTPS:
Either HeidiSQL or MySQL Workbench
- Add a new connection (see last point for example)
- By default the username may be set to
root
and the password left empty, with SSL disabled. Port should be set to3306
. - Note: Encoding is eucKR (not UTF-8), if you need to know
- For MySQL Workbench, see Steps 1-4 in here for more details
Either HeidiSQL or MySQL Workbench
- Run either one of the SQL script files found in
AzureV316/sql/
- It should create a new schema named
kms_316
. - Note: this will cause errors if MySQL Workbench is running in safe mode. Follow the error message instructions to disable safe mode.
- For MySQL Workbench, see Steps 5-6 in here for more details
- This can be achieved by editing the
.ini
file in the install path of the DB management system, and requires a restart
- When the project is first opened, the IDE will automatically start indexing all the files
- Remember to allow the IDE to finish indexing
- See here if you have difficulty doing so
IntelliJ: File -> Project structure
- Set the project SDK to an appropriate JDK version (see above in tech specs)
- Ensure that all the required libraries (in
AzureV316/AzureMS/lib/
) are imported. - See here for references
- Hit
Shift
twice to bring up the search menu, and search for mysql. - Select the first option.
- Check the username and password strings in
MYSQL.java
are correct.- Have it match your DB settings from earlier!
- This reference screenshot uses defaults
Navigate to Azure_316\AzureV316\AzureMS\src\launcher
to reach Start.java
- Try
Build
andRun
this file. (HeidiSQL or WAMP should be running in background)
- Note that the first build/run may take quite a while!
- For subsequent runs, you may use the top right corner to run
An AzureMS Project • AzureMS Discord • Discord Bot Source Code Sample • Azure-based DB API