A web interpreter using Node

So after learning the ways in which we can launch and control external processes, I decided to create a mini project just to demonstrate what I just learnt. And what better to implement than an online interpreter -- a web app that takes your code, interprets it using a separate process, and hands over the result back in browser? Cool!

I decided to implement it for Python 2.7 initially, however have written the code in such a way that additional language support can be easily added. I will not talk much about it, but let a diagram explain it's architecture:

Architecture of the Node web interpreter

I have successfully run the interpreter on my c9.io cloud workspace, however cannot share it with you because c9 shuts the workspace after some idle time. Hence, attaching a screenshot too:

The web interpreter in action. Click to expand



I will also love it if someone decides to enhance this app and come up with new features. For this purpose, I am sharing it's GitHub repo with you so that you can have a look at the code and see what's going on:

https://github.com/adityamedhe/Node-Web-Interpreter

Cheers!

No comments:

Post a Comment