A Duolingo-style app for learning prompt engineering through hands-on practice.
- 🎯 Interactive Challenges: Practice with real coding prompts
- 🏆 Leaderboard System: Compete with other prompt engineers
- 📊 Real-time Scoring: Get instant feedback on your improvements
- 🎮 Gamified Learning: Duolingo-style progression and hints
- 🌙 Dark/Light Mode: Comfortable learning environment
- Node.js 18+
- pnpm (recommended) or npm
- Clone the repository:
git clone <your-repo-url>
cd CodeFeedback- Install dependencies:
pnpm install- Set up environment variables:
cp .env.example .env.local- Add your OpenAI API key to
.env.local:
OPENAI_API_KEY=your_openai_api_key_here
For persistent leaderboards on Vercel:
- Enable Vercel KV in your Vercel dashboard
- Add environment variables in Vercel:
KV_REST_API_URLKV_REST_API_TOKEN
Note: The app works without Vercel KV using in-memory storage for local development.
pnpm devOpen http://localhost:3000 to start learning!
Deploy to Vercel with one click:
- Challenge: Get a bad prompt that generates poor code
- Improve: Edit the prompt to be more specific and clear
- Test: See how your improved prompt generates better code
- Score: Get points based on code quality improvements
- Compete: Add your name to the leaderboard!
- Framework: Next.js 15 with App Router
- Styling: Tailwind CSS + shadcn/ui
- Database: Vercel KV (Redis) for leaderboards
- AI: OpenAI GPT for code generation and analysis
- Deployment: Vercel
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License - see LICENSE file for details.