tree: 9f8ad1763d42c4dadf8fa5f754309d0d94e4ce07 [path history] [tgz]
  1. catalog-dev/
  2. retrieve/
  3. .gitignore
  4. gulpfile.js
  5. package.json
  6. README.md
client/README.md

NDN Catalog (NDN Query and Retrieval Tool)

This is the front end to the catalog which contains all of the client html and code.

Setup

###To simply run the client code:

You will need the following things setup:

  • A NDN backend running somewhere (The default config is pointed at a test backend)
  • NDN-JS
    • Run git submodule init ndn-js in the client directory.
    • Then run git submodule update
  • Configure the config.json in catalog-dev
    • If it doesn't exist, you will need to copy it from the config-example.json
    • config.json is intentionally left out of the git to prevent overwriting your changes.

Note: The dev code runs from catalog-dev and is not gauranteed to run across all browsers. Only the deployment code is prepared in such a way that we can promise the code will work. (Internet explorer may work but is not officially supported by either option)

###To run the deployment code:

You will additionally require npm and node installed (npm is packaged with the default node installation).

Run the following:

npm install -g gulp
npm install
gulp

The site will now be available in the catalog directory.

If you run into issues of requiring sudo access you may need to configure the npm prefix to point your global package repo somewhere else. Should you find yourself in a situation that you don't mind using sudo, feel free to simply just run with sudo.

##Serving the site:

To serve the site, point a webserver at the same directory this README file is in. Then give users the url: http:///catalog or /catalog-dev depending on if you are running deployment code.

HTTPS is not supported and will break the code as it is unless the ndn backend is running a valid certificate as well, this is due to a security rule in most browsers that restricts the ws protocol from running in https tabs/frames. All content in the https frame MUST be secure. (Aka run wss in https) (HTTPS is not officially supported)

config.json

###Global

  • CatalogPrefix - Where should the catalog attach in the URI scheme? (Usually the root of a catalog)
  • FaceConfig - A valid NDN node location running the websocket for NDN-JS.

###Retrieval

  • DemoKey - The public and private portion of an RSA in Base64. This key must be valid in the NDN Network for it to work.
  • Destinations - A list of retrieval URIs. These must be running the retrieval code or retrieval will fail.

Changing the theme

Currently the theme is a modified bootstrap theme that is running larger fonts and custom colors.

If you would like to modify the theme go to this url. To modify the current theme, then upload the variables.less in this folder, make your modifications, and overwrite the variables.less file when you are done (and the theme.min.css).