- After cloning the repository, create a database named 'clientproject'. Make sure your login details are root/comsc for MySQL. If not, you need to edit both the build.gradle and the application.properties with the correct setup
- Run
gradle flywayClean
in terminal - Run
gradle flywayMigrate
in terminal - To run the project run
gradle bootRun
. Accessible at http://localhost:8080 - Repeat whenever testing out a new feature or making database migrations.
- Run
gradle build --continuous
- Without closing the window run
gradle bootRun
in a separate window.
- The configuration for the project is available in the application.properties file. It should be completely functional with any up-to-date MySQL database on any server.
- The project can be accessed at http://localhost:8080. This is once again configurable through the application.properties file
- The example details are user/123456 for users and admin/123456 for admins.
- Unlisted features: http://localhost:8080/admin takes you to the admin page with an admin account, and http://localhost:8080/achievements takes you to the achievements screen
- Make sure you switch the mailserver from mailtrap to an actual mailserver if planning on using this for an actual version.
- Truncate all the tables except the images and sample_images table
- Email validation and the way image ranking is calculated can be toggled in the configuration table in the database.