Backend for an implementation of the Codenames boardgame
You must have these installed before running
-
Install libraries
poetry install
-
Create a copy of the
.env
file from the supplied template and edit as requiredcp template.env .env
-
Initialise the database
poetry run flask db upgrade head
-
Populate the database with some words
poetry run python load_words.py --new-langauge --language=EN data/words/words_en.txt
You can use the
load_words.py
script to load files with more words and languages. For info on how to use it, runpoetry run python load_words.py --help
-
Run the development server
poetry run flask run
-
If using VS Code, do the following to use the right virtual environment
poetry shell code .
Then select the correct virtual environment with the
Python: Select Interpreter
command