Skip to content

Welcome to Rewardle, a Wordle clone that demonstrates how to integrate OPENFORMAT rewards mechanisms into any React application.

License

Notifications You must be signed in to change notification settings

open-format/rewardle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot 2024-02-26 at 16 55 16

Welcome to Rewardle, a Wordle clone that demonstrates how to integrate OPENFORMAT rewards mechanisms into any React application. This project utilises the GetStarted template.

  • Play: The Wordle game you know and love, with credit to @alanrsoares for creating Weirdle, the project we forked and adapted for this demo.
  • Leaderboard: Compete against other players with a real-time, on-chain leaderboard.
  • Profile: Add your nickname, view your total XP, $REWARDLE, and completed quests.
  • Quests: Complete quests to earn XP, $REWARDLE, and badges.

Important

This demo is exclusively connects to the Polygon Mumbai testnet. All tokens used are not real, allowing you to have as much fun as possible while ensuring safety. You can review our smart contract and SDK code on our GitHub account: https://github.com/open-format.

Getting Started

Prerequisites

  • We're using Bun as the JavaScript runtime for its awesome performance - Bun
  • Node.js 18.17 or later (This is due to Next.js and Prisma relying on Node.js APIs that Bun does not yet implement - Ref). Once Bun supports these APIs this will not longer be required.

Setup

  1. Clone the repository:
git clone https://github.com/open-format/rewardle.git
  1. Navigate to the project directory:
cd rewardle
  1. Run setup script (Install dependencies,setups local database and generate env files):
make setup
  1. Add environment variables to ./backend/.env

  2. Add environment variables to ./frontend/.env.local

  3. Execute development commands:

bun dev
  1. Open your browser to view the applications:

About

Welcome to Rewardle, a Wordle clone that demonstrates how to integrate OPENFORMAT rewards mechanisms into any React application.

Resources

License

Stars

Watchers

Forks