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

release.projects.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 page with a 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 public

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.

Deploy

If you do not have access to the vanadium-staging GCE account ping jasoncampbell@. Once you have access you will need to login to the account via the command line.

gcloud auth login

To deploy the playground client to https://staging.playground.v.io use the make target deploy-staging.

make deploy-staging

This will sync the public directory to the private Google Storage bucket gs://staging.playground.v.io which gets automatically updated to the nginx front-end servers. Currently all static content is protected by OAuth. For more details on the deployment infrastructure see this doc and the infrastructure repository.