waschmittel / ltc-rallye

LTC-Rallye

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LTC Rallye

Helpful sql scripts

-- list of runners
select name,
       number_of_laps_run,
       bonus_points,
       fastest,
       average
from runner,
     (select min(duration / 1000) fastest, runner_id from lap where duration > 0 group by runner_id) as fastestlap
where fastestlap.runner_id = runner.id;

-- list of sponsors
select sponsor.name,
       per_lap_donation,
       one_time_donation,
       runner.name,
       coalesce(runner.number_of_laps_run, 0) laps,
       coalesce(runner.bonus_points, 0)         bonus,
       total_donation,
       runner.room_number
from sponsor,
     runner
where sponsor.runner_id = runner.id
order by runner.room_number asc, runner.name asc;

Project structure

  • MainLayout.java in src/main/java contains the navigation setup (i.e., the side/top bar and the main menu). This setup uses App Layout.
  • views package in src/main/java contains the server-side Java views of your application.
  • views folder in frontend/ contains the client-side JavaScript views of your application.
  • themes folder in frontend/ contains the custom CSS styles.

Useful links

About

LTC-Rallye

License:The Unlicense


Languages

Language:Java 93.9%Language:CSS 3.9%Language:Shell 2.2%