This project is developed by a student-group of 6 people. The application is trying to help reporting rowing-testresults, and give a better presentation of the data, that until now is stored in publicly available Excel documents.
There might be a live version on this link.
To make this work, you only need to have docker installed on your system.
-
Clone this repository into a local folder.
-
Run the
setupscript for your system.
The script for your system is
setup.cmdfor Windows, andsetup.shfor Unix and Unix-like systems like Linux or Mac OS.
Note: On Unix and Unix-like systems you might need to run the commands withsudoto make them work.
-
Run the command
docker exec -it mariadb mysql -pand enter the password found in setup undermysqlRootPassword. (Default:eplepai) -
To create a database user for this webapp do the following commands (change the password as you please):
CREATE USER 'roing'@'%' IDENTIFIED BY 'Passord123';
CREATE DATABASE roing;
GRANT ALL PRIVILEGES ON roing.* TO 'roing'@'%';
FLUSH PRIVILEGES;- Edit the
setup-script to match your IP and database-user.
You'll find the IP you need by doing the following:
You can find the IP you need by entering:
docker network inspect bridgeinto your terminal.
Copy the IP under "Gateway" (Typically:172.17.0.1)The port is default at
3306, but you can change it in thesetupif you need to.
-
If you edited your
setup-script, restart your docker-daemon and then run thesetup-script again. -
Run the RoroDBSetup.sql sql-script in the database to setup the database with some default data.
(Default login is
admin@adminwith pweplepai)
When returning to the project, you simply need to run the setup-script once to set everything up again.
-
To rebuild the webapp you simply need to run the
build-script. This will build the project and redeploy it in the payara container. -
Visit http://localhost:8080/roingwebapp/ to see if it works!