Skip to content

robertjauss/patreon-raffle

Repository files navigation

Patreon Raffle - patreonraffle.app

Overview

A simple-to-use app for selecting winners for raffles and giveaways. Geared towards Patreon, as the idea came from a Patreon creator who couldn't find an easy way to select multiple winners for giveaways.

Entering one user per line, selecting the number of winners, and optionally a number of bonus winners, the app will run through the list and choose winners for you, showing them in a couple different ways to make for good screenshots for Patreon posts. It's open for anybody to use, so give it a shot over at https://patreonraffle.app. No login, no accounts, no tracking, no limits.

Technologies Used

  • Python
  • Django
  • Web Awesome
  • Docker
  • Docker Compose

Getting Started

  • Local development
    1. Ensure Python is installed
    2. Clone the repository: git clone <repository_url>
    3. Navigate to the project directory and create a virtual environment: python -m venv venv && source venv/bin/activate
    4. Install the project's dependencies: pip install -r requirements.txt
    5. Start the development server: python manage.py runserver
  • Production deployment
    1. Clone repo
    2. Build docker image: docker build -t patreon_raffle .
    3. Start container: docker run -d patreon_raffle
    4. Point web server (NGINX, Apache, etc.) at localhost:8000
  • Environmental variables
    • DJANGO_SECRET_KEY
      • 60 character random string
    • DEBUG (default 0)
      • Set to 1 to enable debugging mode. Don't run debugging mode in production.
    • ALLOWED_HOSTS (default localhost,127.0.0.1)
      • Comma separated list of domains allowed to access the site
    • CSRF_TRUSTED_ORIGINS
      • Comma separated list of schemas + domains allowed to POST to the site

License

This project is licensed under Apache-2.0 license.

About

A simple-to-use app for selecting winners for raffles and giveaways

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors