https://github.com/skupperr/ai-coding-challenge-generator
AI Coding Challenge Generator is a full-stack application that helps users improve their coding skills through daily AI-generated multiple-choice challenges, tailored by difficulty.
https://github.com/skupperr/ai-coding-challenge-generator
ai clerk fastapi javascript ollama python react sqlalchemy vite
Last synced: 3 months ago
JSON representation
AI Coding Challenge Generator is a full-stack application that helps users improve their coding skills through daily AI-generated multiple-choice challenges, tailored by difficulty.
- Host: GitHub
- URL: https://github.com/skupperr/ai-coding-challenge-generator
- Owner: skupperr
- Created: 2025-07-20T16:13:57.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-20T17:37:17.000Z (11 months ago)
- Last Synced: 2025-07-20T19:18:02.580Z (11 months ago)
- Topics: ai, clerk, fastapi, javascript, ollama, python, react, sqlalchemy, vite
- Language: Python
- Homepage:
- Size: 271 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ง AI Coding Challenge Generator
[](https://www.python.org/downloads/)
[](https://vitejs.dev/)
> Practice makes perfect โ sharpen your coding skills with daily AI-generated MCQs.
**AI Coding Challenge Generator** is a full-stack application that helps users improve their coding skills through daily AI-generated multiple-choice challenges, tailored by difficulty.

## ๐ Features
- ๐ง **AI-Generated Coding Questions**: Challenges are created using a local Ollama LLM model.
- ๐ **Authentication with Clerk**: Users must log in to access the platform.
- ๐ฏ **Difficulty-Based Challenges**: Choose from multiple difficulty levels.
- ๐ **MCQ Format**: All challenges are multiple choice for quick practice and validation.
- ๐
**Daily Quota System**: Users can attempt a limited number of challenges per day, which resets every 24 hours.
- ๐ **History Tracking**: All past challenges are stored in a secure SQLAlchemy database.
---
## ๐ ๏ธ Tech Stack
### Frontend
[](https://react.dev/)
[](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
[](https://vitejs.dev/)
[](https://clerk.dev/)
### Backend
[](https://www.python.org/)
[](https://fastapi.tiangolo.com/)
[](https://www.sqlalchemy.org/)
[](https://clerk.dev/)
[](https://ollama.com/)
---
## ๐ How It Works
1. **User logs in** via Clerk.
2. After login, user selects a **difficulty level** (e.g., Easy, Medium, Hard).
3. A **local Ollama model** generates a multiple-choice coding challenge.
4. The challenge is shown on the frontend and **stored in the backend** database.
5. A **daily quota** system ensures users can only attempt a limited number per day.
6. Once the quota resets, the user can generate more challenges.
---
## ๐ป How to Use This Repo
### 1. Clone the repository
```bash
git clone https://github.com/skupperr/AI-Coding-Challenge-Generator.git
cd AI-Coding-Challenge-Generator
```
### 2. Set up the frontend
```bash
cd Frontend
npm install
npm run dev
```
### 3. In a new terminal, set up the backend
```bash
cd ../Backend
pip install -r requirements.txt
python server.py
```
---
## ๐ฅ Who Is It For?
- **๐จโ๐ป Developers**: Looking to sharpen their coding skills with AI-generated practice.
- **๐ Students**: Practice MCQs before technical interviews or exams.
- **๐ง Lifelong Learners**: Anyone who wants a quick daily coding brain-teaser.
---
## ๐ Project Structure
```
AI-Coding-Challenge-Generator/
โโโ Backend/ # FastAPI backend
โ โโโ src/
โ โ โโโ routes/
โ โ โโโ models/
โ โ โโโ database/
โ โ โโโ ai_generator.py
โ โ โโโ app.py
โ โ โโโ utils.py
โ โ โโโ .env
โ โโโ server.py
โ โโโ requirements.txt
โ
โโโ Frontend/
โ โโโ src/
โ โ โโโ auth/
โ โ โโโ challenges/
โ โ โโโ history/
โ โ โโโ layout/
โ โ โโโ utils/
โ โ โโโ App.css
โ โ โโโ index.css
โ โ โโโ main.jsx
โ โ โโโ App.jsx
โ โโโ public/
โ โโโ .env
โ โโโ index.html
โ โโโ package.json
โ
โโโ README.md
```
## ๐ฌ Contact
Created with โค๏ธ by [Asif U. Ahmed](https://github.com/skupperr)
[Report Bug](https://github.com/skupperr/AI-Coding-Challenge-Generator/issues) ยท [Request Feature](https://github.com/skupperr/AI-Coding-Challenge-Generator/issues)