GG is a Solana-based web application that combines augmented reality (AR) and cryptocurrency in a scavenger hunt-style game. Players can compete in real-world environments to collect digital assets and participate in a unique gaming experience.
- Hunter Mode: Players race to collect G Boxes in real-world locations.
- Sponsor Mode: Users can support hunters and earn rewards.
- Leaderboard: Tracks top hunters and sponsors.
- Crypto Integration: Built on Solana, supporting SPL tokens.
- Next.js & Serverless Architecture: Utilizes Next.js with SST for backend scalability.
- Frontend: Next.js, React, TypeScript
- Backend: SST (Serverless Stack), Prisma, PostgreSQL
- Blockchain: Solana, @project-serum/anchor
- Authentication: NextAuth with Twitter login
- State Management: React Context API
- Map Rendering: rnmapbox for Mapbox integration
Ensure you have the following installed:
- Node.js (v18+ recommended)
- Yarn or npm
- A Solana wallet (e.g., Phantom)
-
Clone the repository:
git clone https://github.com/mirage-ar/gg-zip.git cd gg -
Install dependencies:
yarn install
-
Set up environment variables:
- Create a
.env.localfile and configure the required values.
- Create a
-
Run the development server:
yarn dev
-
Open http://localhost:3000 in your browser.
GG is built for serverless deployment with SST. You can deploy it using:
yarn deployPOST /api/collect: Handles collection of G Boxes.GET /api/leaderboard/hunters: Fetches the top hunters.GET /api/leaderboard/sponsors: Fetches the top sponsors.GET /api/user/[wallet]: Retrieves user data based on wallet address.
GG's smart contracts are built using Anchor and deployed on the Solana blockchain.
- Fork the repository.
- Create a feature branch.
- Submit a pull request.
MIT License
For support, reach out via 𝕏: @ggdotzip