A web-based online code compilation platform that allows users to write, execute, and test code in multiple programming languages. This project is designed for developers, students, and anyone who wants to run code online without setting up a local environment.
POST /api/execute| Parameter | Type | Description |
|---|---|---|
language |
string |
Required. Programming language (e.g., Python, C++) |
code |
string |
Required. The code to be executed |
input |
string |
Optional. Standard input for the program |
GET /api/result/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. ID of executed code to fetch result |
Install and run the project locally:
git clone https://github.com/yourusername/online-code-compiler.git
cd online-code-compiler
npm install
npm run devClient: React, TailwindCSS
Server: Node.js, Express.js
Database: MongoDB, Firebase
Other Tools: WebSockets, REST APIs, Docker, AWS
- Supports multiple programming languages (Python, C++, Java, etc.)
- Real-time code execution with WebSockets
- Secure sandbox environment for running code
- User authentication and history tracking
- Optimized backend for scalable performance
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.