Skip to content

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.

Notifications You must be signed in to change notification settings

skupperr/AI-coding-challenge-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠 AI Coding Challenge Generator

Python 3.11+ Vite + React

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.

Demo Screenshot

🚀 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

React JavaScript Vite Clerk

Backend

Python FastAPI SQLAlchemy Clerk SDK Ollama


🔍 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

git clone https://github.com/skupperr/AI-Coding-Challenge-Generator.git
cd AI-Coding-Challenge-Generator

2. Set up the frontend

cd Frontend
npm install
npm run dev

3. In a new terminal, set up the backend

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

Report Bug · Request Feature

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published