A modern, interactive code editor built with React and Monaco Editor that allows users to write and execute JavaScript and Python code directly in the browser! 🎯
- 🟨 JavaScript Support: Execute JavaScript code instantly in the browser
- 🐍 Python Support: Run Python code using Pyodide (no server required!)
- 🎨 Monaco Editor: Professional-grade code editor with IntelliSense
- 🌙 Dark Theme: Easy on the eyes with syntax highlighting
- 📱 Responsive Design: Works seamlessly on desktop and mobile devices
- ⚡ Real-time Execution: See results immediately in the output console
- 🛠️ Error Handling: Clear error messages and debugging information
- 🚀 No Setup Required: Start coding immediately - no installation needed!
-
Clone the repository:
git clone https://github.com/RhythmPahwa14/Code-Editor.git cd Code-Editor -
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser: Visit
http://localhost:3000and start coding! 🎉
- Select JavaScript from the language dropdown
- Write your JavaScript code in the editor
- Click
▶️ Run Code to execute - View the output in the console panel
// Example: Try this code!
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log(`Fibonacci(10) = ${fibonacci(10)}`);- Select Python from the language dropdown (wait for Python environment to load)
- Write your Python code in the editor
- Click
▶️ Run Code to execute - View the output in the console panel
# Example: Try this code!
import math
def calculate_circle_area(radius):
return math.pi * radius ** 2
radius = 5
area = calculate_circle_area(radius)
print(f"Circle with radius {radius} has area: {area:.2f}")- React 18 - Modern JavaScript library for building user interfaces
- Monaco Editor - The code editor that powers VS Code
- Pyodide - Python runtime for the browser
- Create React App - Tool for setting up modern React applications
We welcome contributions from developers of all skill levels! 🌟
- Check out our Contributing Guide 📖
- Look for issues labeled
good first issueorhacktoberfest - Fork the repository and create your feature branch
- Make your changes and test thoroughly
- Submit a pull request with a clear description
This project participates in Hacktoberfest! Here are some great ways to contribute:
- 🐛 Fix bugs - Help improve stability and user experience
- ✨ Add features - Implement new programming language support
- 📚 Improve docs - Make the project more accessible
- 🎨 Enhance UI - Improve the visual design and user experience
- 🧪 Add tests - Help ensure code quality
Check out our Hacktoberfest issues to get started!
- 🟦 TypeScript Support - Add TypeScript language support
- 🌐 HTML/CSS/JS Playground - Multi-file web development environment
- 💾 Local Storage - Save and restore code sessions
- 🔍 Search & Replace - Advanced find and replace functionality
- 🎨 Multiple Themes - Light theme and custom theme support
- 📁 File Management - Import/export functionality
- 🔗 Share Code - Generate shareable links for code snippets
- 🐛 Debugging Tools - Integrated debugging capabilities
This project is licensed under the MIT License - see the LICENSE file for details.
- Monaco Editor - The amazing code editor
- Pyodide - Python runtime for the browser
- React - The UI library powering this app
- All our contributors 🌟
⭐ If you find this project helpful, please give it a star! ⭐
Made with ❤️ for the developer community