Skip to content

Repository files navigation

MyCodeJudge Python Backend

A FastAPI-based backend for the MyCodeJudge platform.

Features

  • FastAPI-based REST API
  • MongoDB with Motor and Beanie ODM
  • Docker-based code execution
  • OAuth2 authentication
  • Comprehensive test suite
  • Async operations

Setup

  1. Install dependencies:
poetry install
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
  1. Run the development server:
poetry run uvicorn app.main:app --reload
  1. Run tests:
poetry run pytest

API Documentation

Once the server is running, visit:

Project Structure

mycodejudge/
├── app/
│   ├── api/            # API endpoints
│   ├── core/           # Core configuration
│   ├── models/         # Database models
│   ├── schemas/        # Pydantic schemas
│   ├── services/       # Business logic
│   └── tests/          # Test suite
└── docker/            # Docker configurations

Netlify Status

Contributing

  1. Create a new branch
  2. Make your changes
  3. Run tests
  4. Submit a pull request

License

MIT

User Code -> Create Source File -> Check Language Type | Interpreted / \ Compiled | / \ | v / \ v Run Directly / \ Compile Code / \ | / \ | v v v Run Test Cases <- Success? | v Return Results

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages