3 ms·
Basically recreated LeetCode on a $5/month VPS lol. It started as a class project but over 800 people joined so I kept refining it for 2 months. It supports run
by weebao 2y ago
Basically recreated LeetCode on a $5/month VPS lol. It started as a class project but over 800 people joined so I kept refining it for 2 months. It supports running Python, Java, and C++ code (building a code runner is tough). Give it a try and let me know what you think!
The code is also open-source too at https://github.com/beatcode-official https://github.com/beatcode-official
- net01 2y agohave a look at this "https://github.com/INGInious/containers https://github.com/INGInious/containers" - open-source platform for secure and automated code assessment
- FabHK 2y agoIn case it's your own project, I believe the convention is to prefix the title with "Show HN:".
- weebao 2y agoSorry I'm new here seems like I can only edit the title within 2 hours of posting. Thanks lots for telling me!
- conradkay 2y agoNeetcode uses/used judge0 for code execution but it might be overkill https://github.com/judge0/judge0 https://github.com/judge0/judge0
- weebao 2y agoYea I knew about that but I wanted to learn how to build one my own :D
- metadat 2y agoWhat were the challenges you encountered / tackled with creating a code runner? Cool project!
- weebao 2y agoThanks! Creating a template for inserting the code would be one. Java has this type erasure thing where the types only appear after compilation so tweaking it around was hard. Spinning up the containers for each submission is slow but it ensures every submission is isolated.