go-plgr2gist

module
v0.0.0-...-aa1bd0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2015 License: MIT

README

go playground to gist

go playground to gist is web application that run code of go language, and post the code to gist.

description

inspired golang/playground.
code that you made can be posted to github gist.

run

sandbox
$ cd sandbox/
$ docker build --force-rm --no-cache -t tag/sandbox .
$ docker run -d -p 8080:8080 --name name-sandbox tag/sandbox
app
# preparation: it is allowed to run the mongo
$ cd app/
$ cp setting/setting_example.toml setting/setting.toml
# edit setting/setting.toml in your client id and client secret from github, and more setting.
$ go run *.go # non build
# or
$ go build && ./app
option
  • -d output debug log.
use docker
# mongo
$ docker run --name mongo -d mongo

# sandbox
$ cd sandbox/
$ docker build --force-rm --no-cache -t tag/sandbox .
$ docker run -d --name name-sandbox tag/sandbox

# playground
$ cd app/
# edit setting/setting.toml in your client id and client secret from github, and more setting.
$ docker build --force-rm --no-cache -t tag/playground .
$ docker run -d -p <use port>:8080 --link mongo:mongo --link name-sandbox:sandbox --name name-playground tag/playground
  • mongo host setting
[mongo]
host = "mongo"
  • sandbox url setting
[sandbox]
url = "http://sandbox:8080/compile"

licence

MIT

Directories

Path Synopsis
Command sandbox is an HTTP server that takes requests containing go source files, and builds and executes them in a NaCl sanbox.
Command sandbox is an HTTP server that takes requests containing go source files, and builds and executes them in a NaCl sanbox.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL