From 2a7dfb11a5d80a6cc769732db31273d0b6213a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozman?= <tomas.hozman@pm.me> Date: Thu, 30 Jun 2022 14:45:37 +0200 Subject: [PATCH] readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6f9b852..52528f2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ -# wa-poll +# pirati.cz program point popularity measurer -A polling program made for my web app class, in the span of about 3 hours. It's not great, but works well enough. +A quick backend server to sort the 2022 communal election points' popularity on pirati.cz, not yet integrated into the newer website system. + +## Setup + +- Copy `config.example.json` to `config.json`. +- Change the `SECRET_KEY` and `IDENTIFIER_HASH_PEPPER` to random values with very high entropy. +- Set the `DATABASE_URL` environment variable to something like `postgresql://username:password@hostname/dbname`. +- Run the app with your WSGI server of choice that integrates the `create_app()` function. Personally, I like gunicorn. (`gunicorn "measurer:create_app()"`) -- GitLab