Train your AI bot (your "Alalay") and battle other bots in the arena. Climb the ranks from 🥥 Bata Pa to 👑 Alamat.
- Go to https://console.anthropic.com
- Sign up and click API Keys → Create Key
- Copy your key
- Download/clone this folder
- Copy
.env.exampleto.env.local - Open
.env.localand replaceyour_api_key_herewith your actual key
REACT_APP_ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxx
- Create a free account at https://vercel.com
- Install Vercel CLI:
npm i -g vercel - In this folder, run:
vercel - When asked, add environment variable:
REACT_APP_ANTHROPIC_API_KEY - Done! You'll get a live URL like
galingbot.vercel.app
OR upload via Vercel dashboard:
- Zip this folder
- Go to vercel.com → New Project → drag and drop the zip
- Add
REACT_APP_ANTHROPIC_API_KEYin Environment Variables - Deploy!
In Vercel dashboard → Settings → Domains → add galingbot.com or whatever you register.
npm install
npm startOpens at http://localhost:3000
galingbot/
├── public/
│ └── index.html
├── src/
│ ├── components/
│ │ ├── AlalayScreen.js # Bot trainer UI
│ │ ├── ArenaScreen.js # Battle arena
│ │ ├── BarangayScreen.js # Community/leaderboard
│ │ └── UI.js # Reusable components
│ ├── lib/
│ │ └── claude.js # Anthropic API + game logic
│ ├── App.js # Main app + navigation
│ ├── index.js # Entry point
│ └── index.css # Global styles
├── .env.example # Copy to .env.local
├── .gitignore
├── package.json
└── vercel.json
- NEVER commit
.env.localto GitHub (it's in .gitignore already) - For production, move API calls to a backend (Next.js API routes or Express server)
- The current setup is fine for demo/MVP but exposes your API key in the browser bundle
- User accounts (Supabase auth)
- Persistent ELO scores
- Real-time multiplayer matchmaking
- GCash/voucher prize integration
- Mobile app (React Native)
- Brand-sponsored battle events
Gawa ng ❤️ para sa mga Pilipino