This project is a web-based code editor inspired by Visual Studio Code, built using Next.js and Monaco Editor. It allows you to write, edit, compile, and run code in various programming languages.
Site: VSOJ
- Choose from a variety of programming languages.
- Select different themes for the code editor.
- Compile and run C++ code right in the browser.
- Provide input for the code execution and view the output and errors.
- Clear the output and error fields with the click of a button.
-
Clone the repository to your local machine:
git clone https://github.com/shrut-vanpariya/VSOJ.git
-
Navigate to the project directory:
cd VSOJ
-
Install the project dependencies:
npm install
-
Build the project:
npm run build
-
Start the development server:
npm start
-
Open your browser and go to
http://localhost:3000
to access the VS Code Editor.
- Select the programming language from the dropdown menu.
- Choose a theme for the code editor.
- Write or paste your code in the editor.
- Provide input for your code (if applicable).
- Click the "Compile & Run" button to execute the code.
- View the output and any errors in the designated areas.
- Use the "Clear" button to clear the output and errors.
- Next.js: A React framework for server-rendered applications.
- Monaco Editor: A web-based code editor developed by Microsoft.
- Axios: A promise-based HTTP client for making API requests.
- CSS Modules: A CSS approach for locally scoped class names.
Contributions to this project are welcome! If you find any bugs, have suggestions for improvements, or want to add new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.