Simple A/B choice game https://ab.21x9.org
Go to file
gpkvt 1353351c0e use url_for for css and js 2023-06-06 17:23:23 +02:00
static added form to submit questions via mail 2023-06-06 14:36:24 +02:00
templates use url_for for css and js 2023-06-06 17:23:23 +02:00
LICENSE Initial commit 2023-06-02 09:47:04 +02:00
README.md Updated README 2023-06-03 23:01:15 +02:00
ab.txt fixed question 2023-06-04 22:18:47 +02:00
config.ini added form to submit questions via mail 2023-06-06 14:36:24 +02:00
game.py added form to submit questions via mail 2023-06-06 14:36:24 +02:00
requirements.txt Updated requirements 2023-06-02 22:09:18 +02:00
supervisor.conf Removed logging 2023-06-06 00:33:14 +02:00

README.md

A/B Game

Simple choice game.

Installation

  1. Install python3 (and pip if needed)
  2. Clone the Repo into /opt/ab/
  3. Put A/B questions in ab.txt
  4. Set config variables in config.ini
  5. Install requirements (pip install -r requirements.txt)

Run

Manual

  1. Run chmod +x game.py
  2. Run ./game.py

Or just run python3 ./game.py

As Service

  1. Install supervisord
  2. Copy supervisor.conf to /etc/supervisor/conf.d/abgame.conf
  3. Reload supervisor (supervisorctl reload)

Use

Open your browser and navigate to http://localhost:5000 or whatever you configured as bind and port in your config.ini.