Skip to content

A web service for running the CWorkbench-Compiler project

Notifications You must be signed in to change notification settings

ethanr33/CWorkbench-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CWorkbench Web Interface

This repo contains a web interface for the CWorkbench Compiler project.

Overview

This project allows users to run the C compiler C compiler I write through an interactive web interface. Through the interface, you can run C code which is supported by my compiler. The interface allows you to view the output of the code.

The website also contains a brief overview of the compiler and what features it supports.

This project is live at this link. It was deployed using AWS, but is currently deployed using Heroku due to cost considerations.

Features

  • C code editor with syntax highlighting
  • Executes C programs using my CWorkbench compiler
  • Displays program output and return values
  • Overview popup describing compiler features

Tech Stack

Languages

  • HTML/CSS
  • JavaScript

Tools / Frameworks

  • React.js
  • Monaco for the code editor
  • Node.js / Express
  • Docker

AWS

  • ECR
  • EC2 Instances
  • Elastic Load Balancer
  • CloudFormation

Getting Started

Prerequisites

You need to have Docker installed to run the project locally.

Installation

To run the web interface, follow these steps:

  1. Clone the repo
  2. Run the following commands:
    docker build -t cworkbench-website .
    docker run -e="PORT=<PORT>" -p <PORT>:<PORT> cworkbench-website
  1. Open the website in your browser at http://localhost:<PORT>

You can change the port to whatever you want by setting the ```PORT`` environment variable, and mapping the desired port. For example:

    docker run -e="PORT=3000" -p 3000:3000 cworkbench-website

Usage

  1. Write a C program in the code editor
  2. Press the run button and see the output!

Please note that only a subset of C is currently supported. You can click on the Info button on the website to see more information, and example programs.

About

A web service for running the CWorkbench-Compiler project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published