Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A full stack web application for online programming, built with React and Express.

License

Notifications You must be signed in to change notification settings

Feiox/code-editor-react

 
 

Repository files navigation

Online Code Editor

A full stack web application for online programming, built with React(Frontend) and Express(Backend). image

Function

This application is used for online coding. After selecting the programming language, you can start to write code. Below are the highlighted features.

  • Five programming languages are supported, including c, c++, java, javascript and python.
  • Syntax highlighting for different languages.
  • Compilation and execution are supported. The proper result or error message will be displayed.

Technology

The Server is built with Express. The used libraries for server are listed as follows.

  • RESTful API: express, express router, cors
  • Compilation & Execution: spawn in node.js

The Client is built with React and 3rd-party libraries, see below.

  • Styling: bootstrap
  • Rich Text Editor: react-ace

Demo

Two available demos:

Note: The demo websites may be slow when you access them for the first time. Be patient!

Setup Locally

git clone https://github.com/jojozhuang/code-editor-react.git
cd code-editor-react
npm install
npm run dev

Access http://localhost:3000/ in web browser and click 'Code Editor' button, enjoy!

Deployment

Follow tutorial Deploying Full Stack React App to Heroku to deploy the React app to Heroku(RESTful API + Frontend React).

Follow tutorial Continuously Deploy Full Stack React App to Heroku and Netlify with Travis-CI to continuously deploy this Full Stack app to Heroku(RESTful API) and Netlify(Frontend React).

Portfolio

Read portfolio Code Editor(React) to learn the main functions of this code editor.

Tutorial

Read tutorial Building Online Code Editor with React and Express to learn how this online code editor is built.

About

A full stack web application for online programming, built with React and Express.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.7%
  • Dockerfile 2.9%
  • HTML 2.8%
  • Shell 1.2%
  • Java 0.7%
  • C++ 0.4%
  • Other 0.3%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.