Skip to content

Code Playground Frontend built with xternjs terminal and monoco editor.

License

Notifications You must be signed in to change notification settings

theanujdev/code-playground-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Playground (Frontend)

Code Playground Demo

Overview

This project provides a real-time cloud-based code sync and editing and website developing platform where you can create any code file. It will provide linting in editor and a basic terminal. Edit HTML, CSS and JS and preview your website in built-in web-renderer.

Tech Stack

Client: React, Typescript, Monoco-editor, Socket.io-client, Xtermjs, React reflex

Server: Node, Express, Typescript, Mongoose, Cookie-parser, Socketio

Features

  • Multiple resizable windows
  • Featured code editor
  • Create, update, delete files
  • Realtime cloud sync of code
  • Preview webpage
  • Built-in terminal with syntax-highlighting
  • Flexible and auto resizable components and clean user interface

Run Locally

  • Clone the project
git clone https://github.com/theanujdev/code-playground-frontend.git
  • Go to the project directory
cd code-playground-frontend
  • Install dependencies
npm install
  • Update constants in src/config/index.ts file :

    SERVER_URL, SOCKET_URL

    (which are going to be same in most cases)

  • Start the server

npm start

Note: You need to run Code Playground Backend server in the background.

Optimizations

Code is refactored and project structure is optimized for scalability. Along with react components and pages, context hook for global state and debounce function have also been used.

Screenshots

App Screenshot

Feedback

If you have any feedback, please reach out at @theanujdev

Authors

License

MIT