commit | f99da4098ec9b25bfef26fedeae908ec48e6a7b1 | [log] [tgz] |
---|---|---|
author | Alex Fandrianto <alexfandrianto@google.com> | Fri May 01 00:57:13 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri May 01 00:57:14 2015 +0000 |
tree | 95dce85e76218d4eb6a2edb4132c449092550052 | |
parent | 30881c57e20b67308e6240cb98515d2735b5b076 [diff] | |
parent | d62550a894a1fc463cb7597695ab4538ffffee45 [diff] |
Merge "nsb: Ensure that namespace is set from app load"
The namespace browser is a web application that lets developers and other users view and interact with the Vanadium world. Starting from their namespace root or other mount table, users can browse through the mount table hierarchy and see where services are mounted. The user can select a service to see more detailed information about it, and can also interact with the service, invoking methods to examine or modify the state of the service.
As a Vanadium web application, the Namespace Browser requires that users install the Vanadium Extension from the Chrome Web Store. If you try to run the web app without the extension, it will prompt you to install it.
Here is the link to the Vanadium Extension: https://chrome.google.com/webstore/detail/vanadium-extension/jcaelnibllfoobpedofhlaobfcoknpap
The Vanadium Namespace Browser lives online at https://browser.v.io/
You do not need to build your own copy of the namespace browser in order to use it, unless you want to modify it or see how it works.
To build a local copy, install the Vanadium environment and be sure to include the web profile.
Here is the link to the development instructions for Vanadium: https://v.io/community/contributing.html
Next, to build your own copy of the namespace browser, run:
cd $V23_ROOT/release/projects/browser make build
This compiles the relevant bundle files in the ‘public’ folder. The assets inside must be served as your own instance of the web app.
You can serve a local instance of the Namespace Browser by executing the following command:
make start
This will also generate Vanadium credentials (a new principal and a blessing) the first time it is run, which may prompt you for your Google Account password and caveats on the blessing in your web browser. You will also be prompted to select a password for encrypting the credentials on local disk. This is optional.
Navigate to http://localhost:9001 to launch the namespace browser. You can quit by using CTRL-C
on the console running make start
.
If you have any problems after updating the code, try cleaning the build.
make clean
make start
Additionally, demo services and mount tables that represent a virtual house and cottage are added to your local namespace, under users
. For more information, see the help pages in the Namespace Browser application (click on the menu icon in the upper-left corner, then select Help).
The namespace browser has some unit and integration tests that verify basic functionality. Run these tests with the following command:
make test
The code repository for the Namespace Browser is on GitHub.
Bugs and other issues can be submitted to the Namespace Browser Issue Tracker.