A simple website to guide your team playing College Football Risk.
You'll need to create a .env
file in the repo root with these contents:
DOMAIN="localhost"
HTTP_PORT=8080
THE_GOOD_GUYS="Michigan"
REDDIT_CLIENT_ID="..."
REDDIT_CLIENT_SECRET="..."
You will need to create a Reddit "app".
- Go to https://www.reddit.com/prefs/apps
- Click "create another app...".
- Give it a sensible name.
- Pick "Script".
- Set "redirect uri" to
http://localhost:8080/reddit_callback
. - Click "create app".
- Reload the page.
- Under "developed applications" at the bottom, find your app and click "edit".
- Under "personal use script" will be your
REDDIT_CLIENT_ID
. - "secret" is your
REDDIT_CLIENT_SECRET
. - Do not share these with anyone!
The app is designed to run on a *nix system, but it can be done on Windows too. Message EpicWolverine if you need WSL help.
sudo apt install python3 python3-venv make sqlite3
make install_venv
- If the venv is giving you a hard time, you can just install the dependancies globally with
pip install -r requirements.txt
. I had issues with the venv on WSL. - Source the venv in future terminals with
source venv/bin/activate
.
- If the venv is giving you a hard time, you can just install the dependancies globally with
- Run
./init_db.sh
to initilize the database. - Run
python ingest_orders.py <path>
to fill the DB with some data. - Run
python flask_app.py
to start the webserver.