Skip to content

V Playground: run, edit, share V code online

License

Notifications You must be signed in to change notification settings

shove70/playground

 
 

Repository files navigation

V Playground: Run, Edit, Share V Code Online

The V Playground is a official place where you can run, edit and share V code online.

Features

  • 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

Developing

First clone the repository:

git clone https://github.com/vlang/playground
cd playground

Quick, containerized local development (recommended)

Using Docker Compose

docker-compose up -d

then access the playground at http://localhost:5555

Using VSCode DevContainers

  1. Install Docker
  2. Install Visual Studio Code
  3. Install the Remote Development extension for VS Code
  4. Clone https://github.com/vlang/playground
  5. Create your application within a container (see gif below)

Done. And your system will remain "clean".

vscode-open-in-container

Then just run:

make run

then access the playground at http://localhost:5555

Run the playground locally

make local_run

then access the playground at http://localhost:5555

Run the playground locally inside isolate (as on play,vlang.io)

NOTE: Only works on Linux, since it uses isolate.

Install Dependencies

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

Run the server

make run

then access the playground at http://localhost:5555

About

V Playground: run, edit, share V code online

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.6%
  • HTML 15.8%
  • CSS 15.1%
  • V 5.5%
  • Shell 3.7%
  • Dockerfile 1.7%
  • Other 1.6%