Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.93 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.93 KB

Description

Allows players to solve multilingual crosswords that are randomly generated with WordNet.

Credits

Link

Please check the repo's About section for the link.

Instructions

With Docker

docker image build -t xwords .
docker run -p 8005:8005 xwords

Without Docker

Download large files

bash ./download.sh

OR

  1. Download wn-multi.db and wnall.db, then copy them over to replace the empty placeholder files with the same name in staticb/db
  2. Download wn-ocal.zip, then place it in the staticb folder

To run locally

pip install -r ./requirements.txt
python flaskapp.py

To deploy to OpenShift

Upload big files in staticb to OpenShift Online v3

web console
  • create an ebs persistent volume with RWO access mode under storage
  • link to it with Add Storage under your deployment configuration and mount it to /data
  • set your OPENSHIFT_DATA_DIR environment variable as /data/staticb)
command prompt / terminal
  • login to the openshift cli
  • cd to your local repo folder
  • oc rsync staticb <deployment pod name>:/data

Option

Image files are kept zipped by default, with OCAL_IS_ZIPPED set to True in flaskapp.cfg. You can set it to False and unzip wn-ocal.zip in place (wn-ocal folder as subfolder of staticb)