What you get
- Your own leaderboard server — a Python Flask API backed by MongoDB, handling score submission and retrieval for daily boards.
- Custom domain hosting — serve the static frontend files from any host you choose, and point them at your own API.
Architecture
Wordgrid is split into two independent parts: Frontend — a set of static files that run entirely in the browser. No build step required.| File | Purpose |
|---|---|
index.html | Game markup and UI |
app.js | Game logic and API client |
style.css | Styles |
words.txt.gz | Compressed word list |
Requirements
- Python 3.x — to run the Flask server
- MongoDB — local instance or a cloud provider such as MongoDB Atlas
- Static file server — any server capable of serving static files: Nginx, Caddy, GitHub Pages, Netlify, and similar options all work
Setup steps
Set up the Flask server
Install dependencies, configure environment variables, and start the server. See Server setup.
Configure the frontend
Update
API_URL in app.js to point at your server. See Configuration.Next steps
Server setup
Install dependencies and run the Flask leaderboard server locally or in production.
Configuration
Configure environment variables and connect the frontend to your server.