8000 GitHub - dexter-xD/web-compiler
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dexter-xD/web-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Web C Compiler

A web-based platform that allows users to write, compile, and run C programs directly in their browser.

Features

  • In-browser C code editor with syntax highlighting
  • Real-time code compilation and execution
  • Interactive user interface
  • Secure code execution in the backend

Tech Stack

  • Frontend: Vite, React, Socket.io, CodeMirror
  • Backend: Rust with Warp, Socket.io, and Tokio

Project Structure

web-compiler/
├── client/             # Frontend React application
├── server/             # Rust backend server

Prerequisites

  • Node.js and pnpm
  • Rust and Cargo
  • GCC compiler

Setup and Installation

Frontend

cd client
pnpm install
pnpm run dev

Backend

cd server
cargo run

Development

The frontend development server runs on http://localhost:5173, and the backend runs on http://localhost:3001.

How to Use

  1. Open http://localhost:5173 in your browser
  2. Write your C code in the editor
  3. Click "Run Code" to compile and execute
  4. View the output in the results panel

Security

The backend executes code in a sandboxed environment with timeouts and resource limitations to prevent abuse.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0