Skip to content

178inaba/go-plgr2gist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

docker link host setting(setting.toml)

  • mongo host setting
[mongo]
host = "mongo"
  • sandbox url setting
[sandbox]
url = "http://sandbox:8080/compile"

licence

MIT

About

web application that run code of go language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published