https://github.com/shantanu-crypto/remote_code_executor
Real time Code Editor for web developer
https://github.com/shantanu-crypto/remote_code_executor
docker expressjs node-js reactjs socket-io
Last synced: 3 months ago
JSON representation
Real time Code Editor for web developer
- Host: GitHub
- URL: https://github.com/shantanu-crypto/remote_code_executor
- Owner: shantanu-crypto
- Created: 2024-10-31T11:40:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-31T11:59:01.000Z (over 1 year ago)
- Last Synced: 2025-04-06T20:19:38.306Z (about 1 year ago)
- Topics: docker, expressjs, node-js, reactjs, socket-io
- Language: JavaScript
- Homepage:
- Size: 225 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# CODEX
CODEX is a Remote Code Executor which lets you execute short code snippets of yours remotely.
## Features
- Implemented Code Santization
- For each code run request, a seperate Docker container is created which limits the interference with the host machine.
- Socket has been implemented with rooms, allowing multiple users to come together and code along in different rooms.
- The parameters like Time taken to run the code and Total memory used have been limited, allowing efficient management of resources.
- The code execution happens asynchronously, allowing the server to handle multiple requests at the same time.
## Tech Stack
**Client:** React
**Server:** Node, Express, Docker
## Prerequisites
- docker
```bash
curl -fsSL https://get.docker.com -o get-docker.sh
```
```bash
sudo sh get-docker.sh
```
## Run Locally
Clone the project
```bash
git clone https://github.com/shantanu-crypto/Remote_Code_Executor
```
Go to the backend project directory
```bash
cd remote-code-executor/backend
```
Install dependencies
```bash
npm install
```
Build the Docker images
```bash
cd Dockerfiles
```
```bash
sudo docker build -t java:v1 ./java
```
```bash
sudo docker build -t cpp:v1 ./cpp
```
```bash
sudo docker build -t py:v1 ./python
```
## Usage
- To start the backend server in Development mode
```bash
cd backend && npm run dev
```
- To start the backend server in Production mode
```bash
cd backend && npm run start
```
- Start the frontend server
```bash
cd ../frontend && npm start
```
## Screenshots





## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
- Fork the Project
- Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
- Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
- Push to the Branch (`git push origin feature/AmazingFeature`)
- Open a Pull Request