An open API service indexing awesome lists of open source software.

https://github.com/shadowshahriar/crunchy-runner

A simple web-based compiler and code runner.
https://github.com/shadowshahriar/crunchy-runner

c-compiler cpp-compiler node-pty xterm-js

Last synced: over 1 year ago
JSON representation

A simple web-based compiler and code runner.

Awesome Lists containing this project

README

          

# Crunchy Runner

## Overview

> **Crunchy Runner** is a local compiler and code runner created with web technologies. It uses [`node-pty`][1] to create a terminal instance that users can interact with in the front end using [`xterm.js`][2]

**Update:** Added support for **C#**, **Java**, **Python**, **JavaScript**, and **Go**.

[📌 **Video Demo**][8]

![Crunchy Runner Landing Page](./static/preview.png)

This project was _heavily_ inspired by the [**Programiz Online C Compiler**][3], but it lacked themes and customizability. So, I decided to create something similar with more features.

Initially, it started as a weekend project where I learned how to connect the backend with the frontend using [`express.js`][4] and [**web sockets**][5].

Special thanks to [**Ehsanul Haque**][11] vaiya for this project idea. I had a great time brainstorming this one.

## Prerequisites

This project depends on `node-pty`, which in turn depends on an older version of Node.js (**

[1]: https://www.npmjs.com/package/node-pty
[2]: https://xtermjs.org/
[3]: https://www.programiz.com/c-programming/online-compiler/
[4]: https://expressjs.com/
[5]: https://www.npmjs.com/package/ws
[6]: https://github.com/coreybutler/nvm-windows/releases/tag/1.1.12
[7]: https://github.com/microsoft/node-pty#windows
[8]: https://youtu.be/MHisDMl7HQI
[9]: https://codemirror.net/
[10]: ./LICENSE
[11]: https://www.facebook.com/61556343740668/
[12]: https://nodejs.org/en/blog/release/v17.9.1
[13]: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
[14]: https://aka.ms/vs/14/release/vcpp_spectre_libs_x64
[15]: https://www.python.org/downloads/release/python-2715/
[16]: https://www.msys2.org/
[17]: https://stackoverflow.com/a/47624225
[18]: https://www.oracle.com/java/technologies/downloads/
[19]: https://www.python.org/downloads/
[20]: https://nodejs.org/en/download/package-manager
[21]: https://www.codeblocks.org/
[22]: https://go.dev/dl/