The V Playground is a official place where you can run, edit and share V code online.
- Nice and clean UI
- Powerful editor with syntax highlighting and auto-completion
- Easy run code
- Easy run tests
- Easy code formatting
- Shareable code and editor state via URL or local storage
First clone the repository:
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
make local_run
then access the playground at http://localhost:5555
NOTE: Only works on Linux, since it uses
isolate
.
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
make run
then access the playground at http://localhost:5555