Code Craft is a real-time online compiler supporting multiple programming languages with live preview, syntax highlighting, and code execution using Judge0 API.
- π» Live Code Editor using CodeMirror
- π Dark / Light Theme Toggle
- π§ Supports multiple languages:
- Python
- C++
- Java
- JavaScript (Live Preview)
- HTML (Live Preview)
- CSS (Live Preview)
βΆοΈ Run code via Judge0 API- π Analyze lines, characters, and version
- π Copy code to clipboard
- πΎ Export code as a file
- React.js
- CodeMirror editor (
@uiw/react-codemirror) - Judge0 API for code execution
- HTML, CSS, JavaScript
online-code-compiler/
βββ public/
βββ src/
β βββ components/
β β βββ Compiler.jsx
β βββ Compiler.css
β βββ languageConfig.js
β βββ languageSupport.js
β βββ App.js
βββ package.json
βββ README.md
- Clone the repo:
git clone https://github.com/your-username/online-code-compiler.git
cd online-code-compiler- Install dependencies:
npm install- Start the development server:
npm startMake sure to add your Judge0 API Key in
Compiler.jsxfile:
const RAPIDAPI_KEY = 'your_api_key_here';- Visit Judge0 on RapidAPI
- Subscribe and get your X-RapidAPI-Key
- Replace
RAPIDAPI_KEYin your code
Jahnavi Grandhi
This project is licensed under the MIT License.
If you like this project, show your support by β starring the repository!
β
You're ready to paste this directly into your README.md file. Let me know if you want the screenshots or deploy instructions too!