Skip to content

Program to create tournaments, enter scores and view tables.

License

Notifications You must be signed in to change notification settings

ngkuru/tournament-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tournament Maker

This program lets you create tournaments (currently round robin), record scores and view the table. It is created using plain HTML and JavaScript for the UI and Java with PostgreSQL for the server and the database.

How to use

This program uses Java for the backend operations, hence you will need to have JRE installed. To do this in Ubuntu, first update the package repository by typing

sudo apt update

Then, install JRE by typing

sudo apt install default-jre

This program uses PostgreSQL for the database which you need to have installed. To install, type

sudo apt install postgresql-12 

Moreover, the Java server connects to Postgres through a role with username and password java, and you will need to create this role. First, open a terminal and connect to Postgres with the superuser by typing

sudo -u postgres psql

Now you should see the psql console in your terminal which looks like this:

postgres#=

Now, create a user named fixturemaker with password java by typing

CREATE USER fixturemaker WITH PASSWORD 'java';

You will also need to create a main database for fixturemaker to log in to. To do that, type

CREATE DATABASE fixturemaker;

Moreover, give fixturemaker permission to create tables and schemas on this database by typing

GRANT CREATE ON DATABASE fixturemaker TO fixturemaker;

Finally, you need to download the the Java driver for PostgreSQL (licensed by BSD-2) and put it in the lib folder (create the folder if necessary), which you can do from here.

Now you are ready to run the program. First, move inside the folder by opening this folder in a terminal and typing cd bin. Then, start the server by typing

java -cp ../lib/*: tournament.Server

Now, you can open src/html/tournament.html using your browser to use the program. Make sure to close the server (closing the terminal or terminating is sufficient) when you are done.

Screenshots

Tournament creation screen
Tournament screen

About

Program to create tournaments, enter scores and view tables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published