A fullstack TypeScript-based Wordle clone supporting multiple languages (English and Swedish), dynamic word sources (local/remote), game state persistence via sessions, and leaderboard scoring with MongoDB.
[https://wordle-game-pymh.onrender.com/]
- Word guessing game with real-time feedback
- Selectable language (
English/Swedish) - Option to use local or remote word sources
- Backend rendered leaderboard
- Session-based game state and validation
- Secure score submission
- Tested with Jest and Cypress
- Deployable to platforms like Render
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name
npm installcp .env.example .envSESSION_SECRET=your-session-secret MONGO_URI=mongodb+srv://...
WORD_SOURCE=local # or remote (if empty "local" is default)
REMOTE_WORDS_EN=https://raw.githubusercontent.com/dwyl/english-words/master/words_dictionary.json REMOTE_WORDS_SV=https://raw.githubusercontent.com/hermitdave/FrequencyWords/master/content/2018/sv/sv_50k.txt
npm run build # Builds frontend and backend
npm run build-and-start # Builds and starts the app
npm start # Start the appnpm test # Runs Jest backend tests
npm run test:e2e # Runs Cypress end-to-end tests
npm run test:all # Runs both Jest + Cypress