Skip to content

jahnavi-j9/Code-Craft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 CODE CRAFT - Online Code Compiler

Code Craft is a real-time online compiler supporting multiple programming languages with live preview, syntax highlighting, and code execution using Judge0 API.


πŸš€ Features

  • πŸ’» 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

πŸ› οΈ Tech Stack

  • React.js
  • CodeMirror editor (@uiw/react-codemirror)
  • Judge0 API for code execution
  • HTML, CSS, JavaScript

πŸ“‚ Project Structure


online-code-compiler/
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── Compiler.jsx
β”‚   β”œβ”€β”€ Compiler.css
β”‚   β”œβ”€β”€ languageConfig.js
β”‚   β”œβ”€β”€ languageSupport.js
β”‚   └── App.js
β”œβ”€β”€ package.json
└── README.md


βš™οΈ Setup & Run

  1. Clone the repo:
git clone https://github.com/your-username/online-code-compiler.git
cd online-code-compiler
  1. Install dependencies:
npm install
  1. Start the development server:
npm start

Make sure to add your Judge0 API Key in Compiler.jsx file:

const RAPIDAPI_KEY = 'your_api_key_here';

πŸ” Judge0 API Setup

  • Visit Judge0 on RapidAPI
  • Subscribe and get your X-RapidAPI-Key
  • Replace RAPIDAPI_KEY in your code

πŸ™‹β€β™€οΈ Author

Jahnavi Grandhi


πŸ“„ License

This project is licensed under the MIT License.

⭐ Star this repo

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published