VAlgoLang API Backend Server using Express and TypeScript
If you haven't installed the VAlgoLang Compiler or want a quick way to startup the best way is to use docker:
docker run -p 5000:5000 valgolang/valgolang-backend
And go to localhost:5000 in a browser.
- Clone this repo
- Run
npm installto get all the dependencies - If you'd like the latest published version then run
./fetchCompilerto get the latest compiler (otherwise build your own jar file from the VAlgoLang repo and copy it into the root folder ascompiler.jar) - Run
npm startto start up the API Server (defaults to port 5000)
There is a basic test page to upload a VAlgoLang file to download either a zip or and mp4 containing your animation
There is one main endpoint right now: /compile which takes a form-data as the body
It takes in a file with key "file", and then 2 properties:
pythonFile(whether or not to download python file too)outputName(the output filename for the animation)