blob: 415b59126c0ba42ae28be6f36670228ceeb807b8 [file] [log] [blame]
Jeff Thompsona6599bf2013-08-06 17:05:41 -07001NDN-JS: A javascript client library for Named Data Networking
2-------------------------------------------------------------
3
4BASIC LIBRARY: NO BUILD REQUIRED
5================================
6The basic NDN-JS library does not need to be "built". For the library, you can manually
7include the necessary scripts in a web page or include build/ndn-js.js to have it load all of
8the scripts.
9
10BUILD A COMBINED, COMPRESSED LIBRARY
11====================================
12
13While the combined file ndn-js.js is useful for debugging, a more efficient way to include the library
14is to used the combined, compressed library build/ndn-js.min.js.
15While we try to keep a built version in that directory for convenience, it
16may fall out of sync with the library, so we recommend building it as follows if possible.
17
18To create a combined and compressed versions of NDN-JS scripts:
19
20 ./waf configure
21 ./waf
22
23These commands will create a combined version build/ndn-js.js, and combined version build/ndn-js.min.js, compressed
24using Google's Closure Compiler.
25
26The compressed version is what we recommend including in applications.
27
28DOCUMENTATION
29================
30The documentation is auto-generated using JSDoc. If you don't have JSDoc installed, download and unzip from:
31https://github.com/jsdoc3/jsdoc/archive/master.zip
32
33To make doc, cd to the root directory of ndn-js and run the following command to put the output in subdirectory doc:
34<path-to-jsdoc>/jsdoc --recurse --destination doc js
35
36WEBSOCKETS PROXY
37================
38
39If you wish to run your own WebSockets proxy instead of using the NDN testbed, you must
40build and install Node.js (often on the machine also running the ccnd you wish to proxy
41for, but that doesn't have to be the case). See wsproxy/README.md
42
43THE FIREFOX ADD-ON
44==================
45
46First build the compressed version of NDN.js
47
48 ./waf configure
49 ./waf
50
51Then go to the ndnProtocol directory and run ./make-ndnProtocol.sh which makes ndnProtocol.xpi in the top directory.
52