docker image for cwackerfuss/react-wordle
10K+
This is a clone project of the popular word guessing game we all know and love. Made using React, Typescript, and Tailwind.
Clone the repository and perform the following command line actions:
$> cd react-wordle
$> npm install
$> npm run start
$> docker build -t reactle:dev -f docker/Dockerfile .
$> docker run -d -p 3000:3000 --name reactle-dev reactle:dev
Open http://localhost:3000 in browser.
$> docker build --target=prod -t reactle:prod -f docker/Dockerfile .
$> docker run -d -p 80:8080 --name reactle-prod reactle:prod
Open http://localhost in browser.
The default configuration is for solutions and guesses of length five, but it is flexible enough to handle other lengths, even variable lengths each day.
To configure for a different constant length:
WORDS array in src/constants/wordlist.ts to only include words of the new length.VALID_GUESSES array in src/constants/validGuesses.ts to only include words of the new length.To configure for variable lengths:
WORDS array in src/constants/wordlist.ts to include words of any of the variable lengths desired.VALID_GUESSES array in src/constants/validGuesses.ts to include words of any of the variable lengths desired.Note that guesses are validated against both the length of the solution, and presence in VALID_GUESSES.
REACT_APP_LOCALE_STRING to your localedir="rtl" to the HTML tag\u202E (the unicode right-to-left override character) to the return statement of the inner function in generateEmojiGrid in src/lib/share.tsThis repository includes support for Google Analytics or Plausible Analytics, but, by default, this is disabled.
To enable Google Analytics:
G-XXXXXXXXXX)REACT_APP_GOOGLE_MEASUREMENT_ID=G-XXXXXXXXXXKeep in mind that your region might have legislation about obtaining a user's consent before enabling trackers. This is up to downstream repos to implement.
To enable Plausible Analytics:
example.appREACT_APP_PLAUSIBLE_DOMAIN=example.appWant to add one to the list? Just make a pull request or let us know via a comment here
Content type
Image
Digest
sha256:670dc3d7d…
Size
10 MB
Last updated
over 3 years ago
docker pull xavierh/cwackerfuss-react-wordle