uGO Playground is a single page web application to create playground for uGO script language. Playground is built for WebAssembly.
Install followings:
- go v1.17
- node v14
- npm
- yarn
go install github.com/ozanh/ugo@latest
It is recommended to install Vue CLI
npm packages globally for
development purposes. See detailed Vue CLI
installation instructions
here.
yarn global add @vue/cli
Install all node dependencies with the following:
yarn install
Use vue ui
command to access to awesome Vue GUI to serve/build/test instantly.
make development
yarn run serve
make production
yarn run build
Built files are placed in dist
directory.
There is a simple Go web server in the package at cmd/server
directory to
access web application which can be run with the following command:
go run cmd/server/main.go
go run cmd/server/main.go -h
Usage
-dir string
file server root directory (default "dist")
-listen string
bind address:port (default ":9090")
yarn run lint
make test
yarn run test
See Makefile file for testing and building.
See vue.config.js file for Vue settings (Configuration Reference).
See package.json file for other settings.
- Import
uGO
scripts as modules from local files, http(s) addresses and github gists.
uGO Playground is licensed under the MIT License.
See LICENSE for the full license text.