A simple Wordle-style clone with a React frontend and a Flask backend.
- Node.js 18+
- Python 3.10+
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.pyThe backend runs on http://localhost:5000.
The backend expects a Postgres database. Copy the example config and update it with your
credentials (including an IANA timezone such as Australia/Brisbane):
cd backend
cp db_config.example.json db_config.jsonCreate the database and user (Ubuntu/Postgres defaults shown below):
sudo -u postgres psql <<'SQL'
CREATE USER wordly WITH PASSWORD 'change-me';
CREATE DATABASE wordly OWNER wordly;
GRANT ALL PRIVILEGES ON DATABASE wordly TO wordly;
SQLTo rebuild the database (drop and recreate all tables), run:
cd backend
python db.py rebuildcd frontend
npm install
npm run devThe frontend runs on http://localhost:5173.
- Game data (word, definition, scores, and player states) is stored in Postgres.
- Use the
/adminpage in the frontend to reset the game and select a new word.
cd backend
pytest