This repository contains the source code for V's playground (https://play.vlang.io).
git clone https://github.com/vlang/playground
cd playground
docker-compose up -d
then access the playground at http://localhost:5555
- Install Docker
- Install Visual Studio Code
- Install the Remote Development extension for VS Code
- Clone https://github.com/vlang/playground
- Create your application within a container (see gif below)
Done. And your system will remain "clean".
Then just run
make run
then access the playground at http://localhost:5555
NOTE: This is not recommended, as it requires you to install V and all of its dependencies manually. Only works on Linux.
We use isolate to sandbox the playground, so you need to install it first.
git clone https://github.com/ioi/isolate /tmp/isolate
cd /tmp/isolate
make isolate isolate-check-environment
make install
git clone https://github.com/vlang/playground
cd playground
v run server.v
then access the playground at http://localhost:5555