Skip to content

A simple app with several random-based utilities like generate random teams, or choose a random item from a list. The static web app is made with custom Lit Web Components and FluentUI.

License

Notifications You must be signed in to change notification settings

hectortosa/rafflr

Repository files navigation

Rafflr App

🔗 Rafflr Site

Azure Static Web Apps CI/CD

This is a simple app to do Raffles.

Screenshot of the app

General usage

Adding multiple items

Every list of participants, prices, team members, etc, supports pasting a list of items, using each line of the content pasted as an item to add to the list. It will also use semi-colon ; as item separator.

You can also add several entries at the same time by writing them in one go separated by semi-colon ;.

Saving setup

You can save your current setup by clicking in Copy setup link. This will generate the URL with the current setup and copy it to the clipboard (note this might not work on all borwsers if they don't support Clipboard API).

Dice Roll

This will simulate a dice roll. You can configure the number of dices and the sides of them using standard dice notation in the Dice Setup input. To use more than one type od dice, enter more than one standard notation separated by colon ;.

For example, to roll 2 dices with 6 sides each, plus 1 dice of 20 sides, you would enter 2d6;1d20 in the Dice Setup input.

Lucky One

This will randomly pick one item from the list of Participants. If Remove pick is checked, the picked item from the Participants list will be removed and picked will be kept.

Copy setup will also copy the list of picked items if Remove pick is checked.

Raffle Prizes

To use it, just add as many prizes and participants as you want by simply entering the value and pressing Enter or click Add. Press Raffle button to perform the raffle.

When the Raffle is performed, if there are more prizes than participants, and prizes cannot be equitably assigned to all participants, some prizes will be To Share, because sharing is caring.

Random Teams

This will create random teams from the list of participants. The number of members per team is indicated with the Team Size input. Simply add the desired team size, the participants, and click on Team Up button.

If participants cannot be evenly distributed, the last team will have the remaining participants.

Shuffle Order

This will simply re-order the participants list. Simply add the participants and click on Shuffle button.

Development

Rafflr uses PNPM + Vite + Lit + TypeScript (and their respectives required dependencies like Node).

To quickly setup your local environment, run

pnpm i

then

pnpm run dev

❤️ Like the project?

If you like this project (or any other) and want to help me contiue to improve it or create new ones, check my Ko-fi profile and consider buying me a Speciality Coffee:

ko-fi

About

A simple app with several random-based utilities like generate random teams, or choose a random item from a list. The static web app is made with custom Lit Web Components and FluentUI.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project