A football prediction game.
Data for UEFA Euro 2024 included.
-
Install
jdk8,maven,ruby,nodejsandnpmusing your OS package manager. -
Install the required node modules globally:
npm install -g bower grunt-cli -
For compiling SCSS to CSS, the RubyGem
sassis also needed:gem install sass
-
Install the project dependencies:
npm install bower install -
Run with development profile:
mvn spring-boot:run -
Open up a new terminal and launch the node web server:
grunt serve -
Open http://localhost:3000 in a web browser.
To build the Docker image, be sure that local docker daemon is installed and running to build the image.
Your shell user also needs to be a member of the docker group.
docker login docker.io
mvn dockerfile:build
mvn dockerfile:tag@tag-version
mvn dockerfile:push@push-latest
mvn dockerfile:push@push-version
-
For database tasks, i recommend using a database manipulating tool like Adminer or phpMyAdmin.
-
Create a MySQL database and grant access rights to a user.
-
Run with production profile (replace credentials):
java -jar target/predictr*.jar \ --spring.profiles.active=production \ --spring.datasource.url=jdbc:mysql://dbhost/dbname \ --spring.datasource.username=dbuser \ --spring.datasource.password=dbpassword \ --spring.mail.host=mailserver \ --spring.mail.username=mailuser \ --spring.mail.password=mailpassword -
Open http://localhost:8080/#/register in a web browser and register a new user.
-
Upgrade the created user to an admin setting the field
roletoROLE_ADMIN. -
You can now log in using the admin user.
Logo image Euro 2024 by Tim Reckmann