tree: 7c7e358633e9a0e556d8a5b96db582ad42d49fa4 [path history] [tgz]
  1. bundles/
  2. src/
  3. .gitignore
  4. .jshintignore
  5. .jshintrc
  6. Makefile
  7. package.json
  8. README.md
  9. test.sh
client/README.md

release.go.playground/client

Source code for the Vanadium playground web client.

  • build - Temporary directory used for building the client.
  • bundles - Default playground examples. Organized as bundles/<group>/<example>/.
  • Makefile - Targets for building the client (browserifying Javascript, etc.)
  • node_modules - Disposable directory created by npm install - dependency modules.
  • package.json - Used by npm install to grab playground dependencies.
  • public - Deployed client website, served by npm start.
  • src/javascript - Scripts implementing the playground client.
  • src/static - HTML and other static resources for a simple embedded client instance.
  • src/stylesheets - CSS for playground editor and output.
  • test.sh - Script testing correctness of default playground examples.

Requires npm and Node.js.

Build the playground web client:

make deploy

The command above automatically fetches node dependencies, browserifies Javascript, and copies all client resources (browserified Javascript, CSS, static files, example bundles) from src and bundles to the public directory for serving.

Start a server on localhost:8088:

npm start

Alternatively, build and start the server in one command with:

make start

As of dec-2014, the playground doc is here.