Skip to content

DeepAgrawal/codeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeditor

Codeditor is an online code editor for HTML, CSS and JavaScript built on React (TypeScript). Its perfect for quick code runs and testing without opening full featured IDE on PC.

Live on - https://deepagrawal.github.io/codeditor/

- !IMPORTANT! -
- Get request for "pastebin developer api" gives CORS error, test this functionality on local machine.
- Number of Post requests for "pastebin developer api" expired for day "17th July, 2021"

Installation

NPM package managers is required for installation. (click here to download node)

# clone the repo
git clone https://github.com/DeepAgrawal/codeditor.git
# go to codeditor folder
cd codeditor
# install all packages in package.json
npm install

Usage

# start the react server
npm start
# for testing code share feature
# use the URL - localhost:3000/?id=BBqnYGTN

Features

  • Hot Reload
  • Code Intellisense
  • Share Your Code with anybody
  • Syntax Highlighting
  • Collapsible Editor

Libraries

  • Monaco - Text editor library used by vs code
  • SASS - For SASS support
  • Typescript - For TypeScript support

Dyte Tasks Status

  • There are 3 sections, namely:
    • “file explorer” pane that contains 3 files: index.html, index.css, index.js. ✅
    • “code editor” that supports syntax highlighting for HTML, CSS, and JS. ✅
    • “live view” section to show the rendered HTML website. ✅
  • Clicking on a file from the “file explorer” should display the corresponding content on the code editor for editing. ✅
  • The “live view” section must display the rendered website that was created by the user. When a change is made to any of the index.html, index.css, or index.js files, the “live view” section should hot-reload, and display the new output. ✅
  • Bonus:
    • Create a feature to save your code, and generate a shareable link (such as https://editor.io/edit/) that should show the saved code when the link is visited. Use the Pastebin Developer API to save your code, generate a unique link, and then load it back at a later stage. ✅
    • Deploy your website on Github pages. ✅
    • Make your React application using Typescript. ✅

License

MIT

About

Codeditor is an online code editor for HTML, CSS and JavaScript built on React (TypeScript). Its perfect for quick code runs and testing without opening full featured IDE on PC.

Topics

Resources

Stars

Watchers

Forks

Contributors