An open API service indexing awesome lists of open source software.

https://github.com/pgmtx/jule-playground

An online sandbox to quickly test Jule code.
https://github.com/pgmtx/jule-playground

docker jule playground website

Last synced: 3 months ago
JSON representation

An online sandbox to quickly test Jule code.

Awesome Lists containing this project

README

          

# Jule Playground

> An online sandbox to quickly test [Jule](https://jule.dev/) code.

## Limitations

- The playground supports up to two concurrent compilations.
- Code relying on stdin is not supported due to sandboxing constraints.

## Setup

You will need [Docker](https://www.docker.com/), a [Go](https://go.dev) compiler (version >= 1.25.5), and [Bun](https://bun.com/).

Install the JavaScript dependencies (including CodeMirror), using `bun install`.

Clang and julec are isolated inside the Dockerfile, which can be built this way:

```
docker build -t jule-clang .
```

### Locally

Type `go run .` then open `0.0.0.0:8080/playground` in your browser.

Each time you edit `public/playground.js`, you have to execute `bun run build` to generate the bundle script.

### On a server

You need to have Docker installed on the server.

There is a [script](./deploy.sh) to easily deploy the project files. Before running it check out the paths and make sure to have a `.env` file containing `SERVER_IP="your_server_ip"`.