#web-interface #running #pony #docker

bin+lib pony-playground

A web interface for running Pony code

1 unstable release

Uses old Rust 2015

0.1.0 Dec 9, 2018

#6 in #pony

MIT license

54KB
1.5K SLoC

JavaScript 1K SLoC // 0.0% comments Rust 389 SLoC // 0.0% comments Shell 19 SLoC // 0.1% comments

A web interface for running Pony code.

Running your own Pony-Playpen

System Requirements

Currently needs to be run on a system with access to Docker.

Running the web server

First, create the Docker image that playpen will use:

docker build docker -t ponylang-playpen

Next, spin up the server.

cargo run --bin playpen

You should now be able to browse http://127.0.0.1:8080 and interact.

Building for production

docker run --rm -it -v $HOME/.cargo/registry/:/home/rust/.cargo/registry -v $PWD:/home/rust/src ekidd/rust-musl-builder:nightly cargo build --release

Dependencies

~20–32MB
~505K SLoC