This is a friendly fun project created after going through the pain of building custom things to calculate the leaderboard for the match predictions during the World Cup 2018, Euro Cup 2020, & World Cup 2022.
This can be used as the dashboard for a fun social leaderboard between friends.
Fork this project and peform the following steps to customize it for you and your friends:
/data/*
has sample CSV files for prediction and results. Ensure that the uuid for participant and user_id are updated. In my case, I had predictions and results for World Cup 2018, Euro Cup 2020, & World Cup 2022. Remove those tournament entires which are not needed.predicts
for storing the predictions participants will make. Use the CSV to import the data. Set the primary key, foriegn key relationship, default values etc.results
for storing the match results. Follow the same as above./src/config.js
to make changes to the stages and stage point.Kotas
to something else starting from index.html
& other *.svelte
.To be udpated
This uses Svelte, Supabase, Bootstrap, HTML, JS, CSS for a static single pages design best suited for all devices like mobile, desktop etc.
Code released under the MIT license.
In the project directory, you can run:
npm install
To set up the packages.
npm run dev
Runs the app in the development mode.
Open http://localhost:5173 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!