A full-stack clone of the popular game wordle using NextJS/React and Typescript.
Unlike most clones which simply work by fetching a random word from a text file without taking into account the rarity of a word, this project actively tries to repeatedly fetch a random word from the backend, comparing the frequency of each word against an external API to check that it matches the difficulty set in the settings, and stops when a word matching the difficulty settings appears.
- Settings modal (min number of chars, difficulty)
- Reset Button
- State management using zustand
- Animated reveal
- Color letters based on its validity
- Virtual Keyboard
- Answer Reveal Modal
- The supabase DB/Auth server associated with this project is currently disabled, auth/DB/win-loss tracking won't work but the app itself will still work
For the JWT Secret Error, refer to this:
https://next-auth.js.org/configuration/options#secret
and do something like this:
export const authOptions = {
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
}),
],
secret: process.env.NEXTAUTH_SECRET,
}
export default NextAuth(authOptions)