h4i-recruitment
h4i-recruitment copied to clipboard
Custom Coderpad
¯_(ツ)_/¯ We could make it run specific languages (maybe only get it to work with python first?) and then we could also add in intellisense as well... who knows.
However, I would build out something that would allow a user to drag and drop a file with code (obviously with specific entry points), which would run in the browser first. Then, you can add a text editor. Then, we can do crazy stuff like time deadlines, submissions, running tests, adding new languages etc.
Some things you can look into:
- https://github.com/facebook/draft-js
- https://github.com/CompuIves/codesandbox-client
Collaboration may be little too much for now.
An additional thing we can do is make the server run code and tests, kinda like how prairielearn does it. Just keep in mind our server runs in serverless using zeit now so storing files with code and running them would possibly not work. Python, Javascript, and other scripting languages would also be a lot easier to run than compiled ones. (A language-agnostic compiler in python https://github.com/HaliteChallenge/Halite/blob/master/worker/compiler.py)
I'd make this another folder in the main directory (same level as the folders frontend
and backend
)