A modern web application for practicing technical interviews with AI assistance, featuring real-time code execution and AI-powered question generation.
codem/
├── frontend/ # Next.js App
└── backend/ # Agents
└── agents/
└── question_creator/ # AI question generation service
- Clone the repository and navigate to the project directory:
git clone https://github.com/nsiyu/temp.git
cd temp- Install frontend dependencies:
npm install- Start the development server:
npm run devThe frontend will be available at http://localhost:3000
- Navigate to the backend directory:
cd backend- Create and activate a Python virtual environment:
For macOS/Linux:
python3 -m venv .venv
source .venv/bin/activate-
Install the poetry and all dependencies from pyproject.toml
-
Create a
.envfile in thebackend/agents/question_creatordirectory:
OPENAI_API_KEY=your_api_key_here
- Start the backend server:
uvicorn question_creator.api:app --reloadThe backend API will be available at http://localhost:8000
The backend provides the following endpoints:
POST /create-question- Creates a new coding question
- Request body:
{ "topic": "string", "difficulty": "string", "custom_requirements": "string" }