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.
- 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.
- Clone the repository:
git clone https://github.com/open-format/rewardle.git
- Navigate to the project directory:
cd rewardle
- Run setup script (Install dependencies,setups local database and generate env files):
make setup
-
Add environment variables to
./backend/.env
-
Add environment variables to
./frontend/.env.local
-
Execute development commands:
bun dev
-
Open your browser to view the applications:
- Backend is running at http://localhost:8000
- React app is available at http://localhost:3000