As the name suggests, the project provides an online platform for writing code. It allows user to code in only two programming languages namely Python and javascript. The left side of the screen is a text editor with auto-complete feature. From the top you can choose the language of your choice and on clicking on run we will see the output of our code on the right side.
- For Backend:
- NodeJS
- Express
- For Frontend:
- React
- NodeJS
fsmodule - NodeJS
pathmodule - NodeJS
child_processmodule react-ace
- We type in the code and file extension and save it in states as strings.
- Then react makes a
postrequest to our backend. - Our backend server then uses the
fsmodule to create a file of the chosen extension. - Then with the help of
execfunction ofchild_processmodule we execute the file created. - We then fetch the output and return it in our API response body.
- From there react takes the output and renders it in the output space.
- I look forward to add a room functionality so users can code solo or collaborate on other projects.
- I look forward to increase the number of languages that the user can code in.
