Skip to content

My implementation of a popular daily word game - Wordle. Including unit tests and integration tests for Redux-connected components written in Jest and React Testing Library.

Notifications You must be signed in to change notification settings

NacomiTagiera/Wordle

Repository files navigation

Wordle Clone

This is a clone of a popular word game - Wordle. The app is deployed on Vercel and can be accessed at https://nextjs-redux-wordle-clone.vercel.app.

Wordle Instructions

How to play

  1. The computer chooses a random five-letter word.
  2. You have six tries to guess the word by submitting a five-letter word each time.
  3. If a letter in your guess is in the correct position in the secret word, it will appear in green.
  4. If a letter in your guess is in the secret word but in the wrong position, it will appear in yellow.
  5. If a letter in your guess is not in the secret word, it will appear in gray.

Features

  • Game state management is handled with Redux Toolkit.
  • The game is fully accessible and can be played with a keyboard.
  • Unit tests and integration tests for Redux-connected components written in Jest and React Testing Library. They assert that the game logic is working as expected and that the components are rendered correctly.
  • Full responsiveness - the game can be played on mobile devices.

Technologies Used

  • Next.js - Popular React framework for building server-side rendered applications. I haven't really utilized the SSR capabilities of Next.js in this project, but I chose it because it provides a great developer experience and makes it easy to build a production-ready React app.
  • TypeScript - Statically typed language that provides better developer experience and code maintainability.
  • Redux Toolkit - Library that simplifies the process of creating Redux stores and reducers.
  • Sass - CSS preprocessor that makes it easy to create reusable styles.
  • Material UI - React UI framework that provides pre-built components and styling.
  • Jest - testing framework for JavaScript projects that works with various languages and libraries.
  • React Testing Library - Testing utilities for React that encourage testing best practices.

Getting Started

To install and start the app locally, follow these steps:

  1. Clone the repo:
git clone https://github.com/NacomiTagiera/Wordle.git
  1. Install the dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open http://localhost:3000 with your browser to see the result.

Testing

The project includes unit and integration tests written in Jest and React Testing Library. To run all the tests, you can use:

npm run test

About

My implementation of a popular daily word game - Wordle. Including unit tests and integration tests for Redux-connected components written in Jest and React Testing Library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages