vlang / playground

V Playground: run, edit, share V code online

Home Page:https://play.vlang.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://play.vlang.io

License:MIT License


Languages

Language:TypeScript 35.9%Language:JavaScript 28.7%Language:SCSS 15.0%Language:HTML 9.1%Language:V 6.9%Language:Shell 1.9%Language:CSS 1.4%Language:Dockerfile 0.9%Language:AMPL 0.1%