Skip to content

theamodhshetty/taptoearn

Repository files navigation

Tap to Earn

A simple, addictive mini game built with MiniKit that runs inside Farcaster Frames.

Game Description

In Tap to Earn, players tap a button as quickly as possible to earn points within a 30-second time limit. The game features:

  • Core Mechanic: Tap the button to increment your score
  • Timer: Each game session lasts 30 seconds
  • Score Display: Real-time score tracking
  • Wallet Connection: Connect your Coinbase Wallet to save scores on-chain
  • Leaderboard: See the top 10 scores globally
  • Notifications: Get alerts for milestones and high scores
  • Visual Feedback: Button animations enhance the tapping experience

Technology Stack

  • Framework: Next.js
  • Styling: TailwindCSS
  • Blockchain Integration: MiniKit on Base
  • Database: Upstash Redis for the leaderboard

Setup

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Set up your environment variables in .env
  4. Run the development server:
    npm run dev
    

Redis Setup

This project uses Upstash Redis for storing leaderboard data. To set it up:

  1. Create an account at Upstash
  2. Create a new Redis database
  3. Add your Redis URL and token to the .env file

Deployment

Deploy on Vercel:

vercel deploy

License

MIT

Created with MiniKit

This project was created using MiniKit, a toolkit for building mini apps on Base, an Ethereum Layer 2 blockchain.

About

A Tap to Earn mini game built with MiniKit for Base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors