Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ArkScript-lang/playground

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArkScript playground

This project is based on ryugod.

Features:

  • This site provides a development environment for simple testing.
  • You can add source files by drag and drop.

Building and running the project

Build and run the webapp:

cd webapp
npm i
npm run serve

Run the websocket (necessary to boot docker containers to run ArkScript code):

npm i
mkdir -p /tmp/playground
node app.js

Adding more files to the menu

You will want to create a file under webapp/public/contents/ide/ark/, with the extension .template.

Then, reference it in webapp/src/ark_ide.json:

{
  "path": "/contents/ide/ark/",
  "list": [
    // this is a single file:
    {"name": "hello_world.template", "type": "f", "list": []},
    // this describes a folder and its content:
    {
      "name": "examples",
      "type": "d",
      "list": [
        "100_bottles_of_beer.template",
        "fibonacci.template"
      ]
    }
  ]
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.