All Projects → Bit-Developer → code-editor-react

Bit-Developer / code-editor-react

Licence: MIT license
A full stack web application for online programming, built with React and Express.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Dockerfile
14818 projects
shell
77523 projects
C++
36643 projects - #6 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to code-editor-react

next-express
Next.js custom webservers with Express.js made easy
Stars: ✭ 64 (+137.04%)
Mutual labels:  expressjs
Blog-Server
The backend Code of Flutter Blog App which is the part of Youtube series. It is developed using the NodeJS/ExpressJs with MongoDB Database
Stars: ✭ 33 (+22.22%)
Mutual labels:  expressjs
mern-stack-application
A MERN stack e-commerce website.
Stars: ✭ 45 (+66.67%)
Mutual labels:  expressjs
nestjs-rest-sample
NestJS RESTful APIs Sample
Stars: ✭ 204 (+655.56%)
Mutual labels:  expressjs
hlf1.4-supply-chain
Supply chain proof of concept in Hyperledger Fabric. Network with four companies and a specific chaincode exposed as rest API
Stars: ✭ 30 (+11.11%)
Mutual labels:  expressjs
express-mongodb-crud
Web Application CRUD using Nodejs and Mongodb
Stars: ✭ 87 (+222.22%)
Mutual labels:  expressjs
AmigoChat-Realtime-Chat-Application
AmigoChat is a responsive real-time chat application built on MERN Stack and Socket io.
Stars: ✭ 22 (-18.52%)
Mutual labels:  expressjs
nodetomic-api
RESTful API Nodejs designed for horizontal scalability with support for cluster, based on Express, MongoDB, Redis, JWT, Socket.io, Passport.
Stars: ✭ 41 (+51.85%)
Mutual labels:  expressjs
mern-boilerplate
React + Express + Webpack + Mongo = MERN Stack Boilerplate
Stars: ✭ 39 (+44.44%)
Mutual labels:  expressjs
blog-front
Blog@NextJs
Stars: ✭ 65 (+140.74%)
Mutual labels:  expressjs
order-service
一个基于vuejs,reactjs,nodejs,socket.io的服务系统
Stars: ✭ 22 (-18.52%)
Mutual labels:  expressjs
ExpressQL
A Ready-to-Go API Skeleton using Node.js + Express.js + GraphQL + MongoDB + JWT Authentication
Stars: ✭ 12 (-55.56%)
Mutual labels:  expressjs
ZestX-Frontend
Month-Long Fest Website ZestX with some Awsome UI and Intact Backend. Implemented admin page for user and event management
Stars: ✭ 28 (+3.7%)
Mutual labels:  expressjs
mindjs
Minimalistic, pure Node.js framework superpowered with Dependency Injection 💡 💻 🚀
Stars: ✭ 17 (-37.04%)
Mutual labels:  expressjs
docker-node-express-boilerplate
Boilerplate for quickly bootstrapping production-ready RESTful APIs / microservices
Stars: ✭ 113 (+318.52%)
Mutual labels:  expressjs
Express-MongoDB-Authentication
A simple authentication app using Express & MongoDB
Stars: ✭ 15 (-44.44%)
Mutual labels:  expressjs
GoBarber
💈 Aplicação de agendamento para serviços de beleza, entre provedores e clientes.
Stars: ✭ 84 (+211.11%)
Mutual labels:  expressjs
firestore-store
express-session store for Firebase Cloud Firestore
Stars: ✭ 44 (+62.96%)
Mutual labels:  expressjs
blog
仿照nswbmw的N-blog项目写的多人博客系统,引入了bootstrap和jquery validation plugin。详见wiki部分。
Stars: ✭ 10 (-62.96%)
Mutual labels:  expressjs
express-mquery
Expose mongoose query API through HTTP request.
Stars: ✭ 37 (+37.04%)
Mutual labels:  expressjs

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).

Steps(Updated on July 18, 2021)

Manually deploy the same git repo to two apps in heroku. Use Multi Procfile buildpack to deploy multiple apps in a monorepo.

Server

Create app code-editor-api for backend api.

cd code-editor-react
heroku login
heroku create -a code-editor-api
heroku buildpacks:add -a code-editor-api heroku-community/multi-procfile
heroku buildpacks:add -a code-editor-api heroku/nodejs
heroku config:set -a code-editor-api PROCFILE=src/server/Procfile
git push https://git.heroku.com/code-editor-api.git HEAD:master

Client

Create app code-editor-react for client website.

cd code-editor-react
heroku login
heroku create -a code-editor-react
heroku buildpacks:add -a code-editor-react heroku-community/multi-procfile
heroku buildpacks:add -a code-editor-react heroku/nodejs
heroku config:set -a code-editor-react PROCFILE=Procfile
git push https://git.heroku.com/code-editor-react.git HEAD:master

Update

Server.

cd code-editor-react
heroku login
heroku git:remote -a code-editor-api
git commit --allow-empty -m "Upgrading to heroku-20"
git push heroku master

Client.

cd code-editor-react
heroku login
heroku git:remote -a code-editor-react
git commit --allow-empty -m "Upgrading to heroku-20"
git push heroku master

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.

Docker

Build for production. All the compiled html files and js files will be generated in dist.

npm run build

Create image with nginx for frontend.

docker build -t jojozhuang/code-editor-web .

Create image with node for backend.

docker build -t jojozhuang/code-editor-server . -f Dockerfile-server

Create container.

docker run --name code-editor-web -p 9010:80 -d jojozhuang/code-editor-web
docker run --name code-editor-server -p 9011:80 -d jojozhuang/code-editor-server

Access http://192.168.0.2:9010/ in browser.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].