- Create your database in MySQL Workbench on your server
- Import database.sql file from code bundle directory into MySQL Workbench:
- login to your database server
- choose Server -> Data Import from the toolbar
- select option "Import from self-contained file" and select database.sql file into your database
- Edit line 24 of uk.ac.sheffield.com2008.database.DatabaseConnectionHandler to represent "mysqlServerHost:port/databaseName?user=yourUser&password=yourPassword"
- Enter app directory and run this command to build the project. We are expecting to have gradle installed.
/gradlew build
- We are expecting to have Java 17+ installed. To run the app type
cd build/libs
java -jar team035-1.0.jar
- The database has been initialised with one manager user and couple of products
- Manager credentials
login:
[email protected]
password:Manager1!