Firstly, install MariaDB Server. Once installed, open the MySQL Client
and press Enter
when prompted for the password. Then enter the following:
CREATE DATABASE db;
Next, open cmd
and navigate to the installation's bin
folder, by default:
cd C:\Program Files\MariaDB 10.5\bin
Then enter the following (where %sql_file%
is the absolute file path to the db.sql
file in the project's root directory):
mysql -u root -p db < %sql_file%
Press Enter
when prompted for the password.
To run the server, open the project in IntelliJ and go to Run
→ Run 'Server'
.
To run the client, open the project in IntelliJ and go to the Maven Tool Window
on the right-hand side. If it's not open, go to View
→ Tool Windows
→ Maven
. Within the Maven Tool Window
open the cab302-major-project
dropdown, go to Lifecycle
→ compile
. Once compilation is complete, click on Reload All Maven Projects
at the top left of the window. Then go to Plugins
→ javafx
→ javafx:run
.
Within the Maven Tool Window
open the cab302-major-project
dropdown, go to Lifecycle
→ package
. Once the packaging process is complete, the executable jars and their properties files can be found in the target directory in the project root.