Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

i582/play-vlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V Playground: Run, Edit, Share V Code Online

This repository contains the source code for V's playground (https://play.vlang.io).

Developing

Quick, containerized local development (recommended)

Using Docker Compose

git clone https://github.com/vlang/playground
cd playground
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 (not recommended)

NOTE: This is not recommended, as it requires you to install V and all of its dependencies manually. Only works on Linux.

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

git clone https://github.com/vlang/playground
cd playground
v run server.v

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published