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/sandeepvashishtha/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