A retro pixel-art coding guild platform where developers take on coding quests, submit solutions, and get AI-powered evaluations.
/codeguild
├── /frontend → Next.js app (port 3000)
├── /backend-core → Express server for auth, quests, scoring (port 3001)
├── /backend-ai → Express server for Gemini AI evaluation (port 3002)
└── README.md
- Node.js 18+
- A Firebase project with:
- Authentication (Google Sign-In enabled)
- Firestore database
- A Service Account (for backend-core)
- A Google Gemini API key (for backend-ai)
Open three terminals and run each service:
cd backend-ai
cp .env.example .env # Fill in GEMINI_API_KEY
npm install
npm start
# Runs on http://localhost:3002cd backend-core
cp .env.example .env # Fill in Firebase service account credentials
npm install
npm start
# Runs on http://localhost:3001cd frontend
cp .env.example .env.local # Fill in Firebase web config + backend URLs
npm install
npm run dev
# Runs on http://localhost:3000See the .env.example file in each package for the required environment variables.
- Login — Sign in with Google via Firebase Auth
- Town Square — Click the Guild Hall building to enter
- Guild Interior — Click the quest board to browse quests
- Quest Board — Take a quest appropriate for your rank
- Submission — Paste your code solution and submit for AI evaluation
- Rank Up — Earn exp to unlock higher-rank quests and advance from Novice → Master
| Rank | Name | Exp Required |
|---|---|---|
| 1 | Novice | 0 |
| 2 | Apprentice | 200 |
| 3 | Journeyman | 500 |
| 4 | Adept | 1000 |
| 5 | Master | 2000 |