aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-09-03 21:14:50 -0500
committerDavid Barksdale <amatus@amatus.name>2014-09-03 21:14:50 -0500
commita1306f971f755abf20a108cf8bb9c95b36b6f331 (patch)
tree2e6ad297dbca36f46dfc97835c231d3926217d10
parentd3d90f1538abf04b0b6d2870ccde808306c2c96a (diff)
Add dev ring server and update README.md
-rw-r--r--README.md31
-rw-r--r--build.boot9
2 files changed, 23 insertions, 17 deletions
diff --git a/README.md b/README.md
index c82e0bb..7927cb1 100644
--- a/README.md
+++ b/README.md
@@ -28,11 +28,24 @@ Roadmap
What You Can Do Now
-------------------
-You will need to install [boot] to follow these instructions.
+You will need to install [boot] to follow these instructions. Currently
+gnunet-web only works in Chromium or Google Chrome.
+
+### Try gnunet-web pre-alpha ###
+0. Execute `./build-gnunet.sh`
+1. Execute `boot development`
+2. Open http://localhost:8000/
+
+Each GNUnet service is running in its own [Web Worker] thread. The APIs used by
+the services to schedule tasks, communicate with each other, and load plugins
+are implemented as emscripten js libraries.
+
+To debug a shared worker in chrome open chrome://inspect and click the
+"inspect" link next to an entry in the shared workers list.
### Try out the RTCPeerConnection demo ###
-0. Execute `boot production`
-1. Open two browsers to resources/public/webrtc.html (let's call them Alice and Bob).
+0. Execute `boot development`
+1. Open two browsers to http://localhost:8000/webrtc.html (let's call them Alice and Bob).
2. Alice presses "Create Offer" and waits a bit for ICE candidates to be
collected.
3. Alice sends the Local Description to Bob.
@@ -46,18 +59,6 @@ You will need to install [boot] to follow these instructions.
8. Alice and Bob wait for the ICE State to be connected.
9. Alice and Bob can send messages with the input box at the bottom of the page.
-### Compile GNUnet with emscripten ###
-0. Execute `./build-gnunet.sh`
-1. Execute `boot production`
-2. Open resources/public/index.html
-
-Each GNUnet service is running in its own [Web Worker] thread. The APIs used by
-the services to schedule tasks, communicate with each other, and load plugins
-are implemented as emscripten js libraries.
-
-To debug a shared worker in chrome open chrome://inspect and click the
-"inspect" link next to an entry in the shared workers list.
-
[gnunet]: https://gnunet.org
[webrtc]: http://www.webrtc.org
[emscripten]: https://github.com/kripken/emscripten
diff --git a/build.boot b/build.boot
index 1e2ed81..78025e7 100644
--- a/build.boot
+++ b/build.boot
@@ -15,12 +15,17 @@
;; Static resources (css, images, etc.):
(add-sync! (get-env :out-path) #{"assets"})
-(require '[tailrecursion.hoplon.boot :refer :all])
+(require
+ '[tailrecursion.hoplon.boot :refer :all]
+ '[tailrecursion.boot.task.ring :refer [dev-server]])
(deftask development
"Build gnunet-web for development."
[]
- (comp (watch) (hoplon {:prerender false :pretty-print true})))
+ (comp
+ (watch)
+ (hoplon {:prerender false :pretty-print true})
+ (dev-server)))
(deftask production
"Build gnunet-web for production."