Skip to content

A modern, secure, and feature-rich online code compiler built with Next.js, Docker, and Monaco Editor. Run and test code in multiple programming languages directly in your browser with real-time output. All code execution happens within isolated Docker containers for maximum security and reliability.

Notifications You must be signed in to change notification settings

rakshit0960/OnlineCodeIDE

Repository files navigation

Online Code Compiler

A modern, secure, and feature-rich online code compiler built with Next.js, Docker, and Monaco Editor. Run and test code in multiple programming languages directly in your browser with real-time output. All code execution happens within isolated Docker containers for maximum security and reliability.

🚀 Features

  • Multi-Language Support

    • Python
    • C/C++ (GCC)
    • Extensible architecture for adding more languages
  • Rich Code Editor

    • Monaco Editor (VS Code-like experience)
    • Syntax highlighting for multiple languages
    • Multiple editor themes
    • Customizable font sizes and settings
    • Line numbers and word wrap
    • Auto-completion and IntelliSense
  • Project Management

    • File explorer with tree view
    • Multiple file support
    • Project-based organization
    • Real-time file saving
    • File creation and deletion
  • Secure Code Execution

    • Docker containerized execution
    • Isolated environments per project
    • Resource limitations
    • Secure input/output handling
    • Protected file system access
  • Real-time Output

    • Standard output (stdout)
    • Error output (stderr)
    • Input support for interactive programs
    • Execution status indicators
    • Terminal-like interface

🛠️ Tech Stack

  • Frontend

    • Next.js
    • React
    • Monaco Editor
    • TailwindCSS
    • Zustand for state management
    • React Query for data fetching
  • Backend

    • Next.js API Routes
    • Dockerode for container management
    • Prisma for database operations
    • NextAuth.js for authentication
  • Execution Environment

    • Docker containers for isolated code execution
    • Resource-limited runtime environments
    • Secure sandboxing for user code
  • Database

    • PostgreSQL
    • Prisma ORM

📋 Prerequisites

  • Node.js
  • Docker
  • PostgreSQL

🚀 Getting Started

  1. Clone the repository

About

A modern, secure, and feature-rich online code compiler built with Next.js, Docker, and Monaco Editor. Run and test code in multiple programming languages directly in your browser with real-time output. All code execution happens within isolated Docker containers for maximum security and reliability.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages