ShnooTalk Playground (Svelte Version)
February 3, 2022 · View on GitHub
![]()
ShnooTalk Playground (Svelte Version)
Run and try the ShnooTalk language from your browser!
The UI is written in Svelte. The code editor is based on shnootalk-ace (extended ace text editor with ShnooTalk syntax support).
The backend is a FastAPI Python app that calls the compiler as a subprocess. You can deploy the app on kubernetes.
Running on local for development
-
Start the server
cd server PIPENV_VENV_IN_PROJECT=true pipenv shell pipenv install --dev make rundev -
Make test curl request
Request
❯ curl --header "Content-Type: application/json" \ --request POST \ --data '{"main.shtk": "fn main() -> int { println(\"Hello world\") return 0 }"}' \ http://127.0.0.1:8000/shnootalk-playground/api/v2/compileResponse
{"result":"SUCCESS","output":"Hello world\n"} -
Configure UI server URL
- change
SERVER_URLhere tohttp://127.0.0.1:8000/shnootalk-playground/api/v2/compile
- change
-
Run UI
cd ui npm run dev