Giter Club home page Giter Club logo

rafflr's Introduction

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

rafflr's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar hectortosa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yamayaml

rafflr's Issues

Have multiple entries/tickets per participant in a raffle

What

Participants should be able to sign up with a certain amount of 'tickets' in a raffle.
The winner is drawn from the pool of tickets, making it more likely to win if a participant has more tickets.

Why

This would fit my specific use-case but is also a general good idea for a feature im my opinion

I would like the app to do...

What

Create a read-only shareable link of any given raffle.

Why

So that an administrator can control the raffle while an audience watches.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.