Live Code Editor is a React App for writing frontend code with live output.
Also uses Pastebin API to save your code.
This code is submission for Dyte
18BCE2146-Piyush Bajaj - [email protected]
- Live view of the website is hot-reloaded to display new output
- Use the Pastebin Developer API to save your code, generate a unique link, and then load it back at a later stage. Pastebin pasted code will be available in brower console.
- Deployed the website on Github pages. - https://piyushxbajaj.github.io/DyteCodeEditor/
- Passes CORS policy successfully by using proxy URL
- Default code present to help user follow the format
Clone the repo
git clone https://github.com/piyushxbajaj/DyteCodeEditor.git
Get your Pastebin API key from https://pastebin.com/doc_api (Pastebin has enabled CORS so sending post request from localhost will cause issues so use the following proxyURL
https://cors-anywhere.herokuapp.com/
https://piyushxbajaj.github.io/DyteCodeEditor/
At the above link, use html,css,js code snippets to create live preview.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.