Source code for the Vanadium playground web client.
build
- Temporary directory used for building the client.bundles
- Default playground examples. Each combination of directory and .bundle
file forms a bundle.node_modules
- Disposable directory created by npm install
- dependency modules.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.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
The client running on localhost needs to have the backend address configured via the pgaddr=
query parameter.
As of dec-2014, the playground doc is here.
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.