Skip to content

joemrnice/cpp-code-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C++ Code Editor

C++ Code Editor Screenshot


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

🚀 Features

  • Syntax-highlighted C++ 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 (C++, in our case)

🖥️ Preview

C++ Code Editor UI


🛠️ Getting Started

Prerequisites

  • Node.js (v16+)
  • g++

Installation

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

# 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

cpp-code-editor/
├── server/         # Express backend for C++ 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


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published