abgame/README.md

31 lines
650 B
Markdown
Raw Normal View History

2023-06-03 23:01:15 +02:00
# A/B Game
2023-06-02 09:47:04 +02:00
2023-06-03 14:26:46 +02:00
Simple choice game.
2023-06-02 09:57:21 +02:00
## Installation
2023-06-03 23:01:15 +02:00
0. Install `python3` (and `pip` if needed)
2023-06-02 09:57:21 +02:00
1. Clone the Repo into `/opt/ab/`
2. Put A/B questions in `ab.txt`
2023-06-03 14:26:46 +02:00
3. Set config variables in `config.ini`
4. Install requirements (`pip install -r requirements.txt`)
2023-06-03 23:01:15 +02:00
## Run
### Manual
1. Run `chmod +x game.py`
2. Run `./game.py`
Or just run `python3 ./game.py`
### As Service
0. Install `supervisord`
1. Copy `supervisor.conf` to `/etc/supervisor/conf.d/abgame.conf`
2. 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`.