Skip to content

Latest commit

Β 

History

History
102 lines (65 loc) Β· 1.89 KB

File metadata and controls

102 lines (65 loc) Β· 1.89 KB

Java Code Editor 2

Java Code Editor Screenshot


A modern, full-stack web application for writing, compiling, and running Java code directly in your browser. Built with React, Express, and Node.js.

πŸš€ Features

  • Syntax-highlighted Java code editor (powered by Monaco/React)
  • Real-time code compilation and output
  • Error and runtime feedback
  • Responsive, dynamic UI
  • Secure backend code execution

βœ… Why use Monaco ?

  • It’s the same editor used in VS Code

Supports:

  • Syntax highlighting

  • Error checking

  • Autocompletion (some)

  • Themes (dark/light)

  • Language-specific behaviors (Java, in our case)

πŸ–₯️ Preview

Java Code Editor UI


πŸ› οΈ Getting Started

Prerequisites

  • Node.js (v16+)
  • Java JDK (v11+)

Installation

# Clone the repository
$ git clone https://github.com/joemrnice/java-code-editor-v2.git
$ cd java-code-editor-v2

# Install server dependencies
$ cd server && npm install

# Install client dependencies
$ cd ../web-client && npm install

Running the Application

# Start the backend server
$ cd server && npm run dev

# In a new terminal, start the frontend
$ cd ../web-client && npm run dev

Visit http://localhost:5173 to use the editor.


πŸ“ Project Structure

java-code-editor-v2/
β”œβ”€β”€ server/         # Express backend for Java code execution
β”‚   β”œβ”€β”€ app.js
β”‚   β”œβ”€β”€ routes/
β”‚   └── utils/
└── web-client/     # React frontend
    β”œβ”€β”€ src/
    └── public/

🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


πŸ“„ License

MIT