Skip to content

Commit 39a7973

Browse files
committed
readme tweak for running sample apps
1 parent 139d43f commit 39a7973

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,24 @@
44

55
Distributed on NPM as [uproxy-lib](https://www.npmjs.org/package/uproxy-lib).
66

7-
## What is in this directory?
7+
## What is in this directory?
88

99
This currently consists of:
1010

1111
* `tools`: tools to help write other Gruntfiles (taskmanager and common grunt rules compiled as JS).
1212
* `src/arraybuffers`: A few handy utilties, e.g. converting ArrayBuffers to strings.
1313
* `src/handler`: event queue handling tool that is useful for async buffer management, e.g. in networking.
14-
* `src/freedom`: experimental additions to freedom used by uproxy, e.g. wrapper for `webrtc` and typescript typings
15-
* `src/freedom/coreproviders`: experimental additional core providers.
14+
* `src/freedom`: experimental additions to freedom used by uproxy, e.g. wrapper for `webrtc` and typescript typings
15+
* `src/freedom/coreproviders`: experimental additional core providers.
1616
* `src/freedom/interfaces`: experiments with freedom interfaces, e.g. interface for experimental `webrtc`
17-
* `src/freedom/samples`: freedom-sample apps, e.g. P2P chat between two peerconnections in a single chrome app.
17+
* `src/freedom/samples`: freedom-sample apps, e.g. P2P chat between two peerconnections in a single chrome app.
1818
* `src/freedom/typings`: typescript declarations for freedom, its core-providers, and main APIs.
1919
* `src/logging`: handy logging library
2020
* `src/taskmanager`: Smart grunt task management that avoid re-building the same components multiple times. This assumes that if a component was build once, then it never has to be build again in a single build run.
2121
* Note: We include the compiled `taskmanager.js`, which has source `src/taskmanager/taskmanager.ts`, so that the Gruntfile can use it. There is a special rule to rebuild this version of taskmanager. Got to love circular dependencies right?
2222
* `src/webrtc`: utility wrapper for WebRtc Peer Connections & Data Channels
2323
* `third_party`: Some third party code we use. Mostly TypeScript declarations (e.g. jasmine, WebCrypto, WebRtc, Angular, etc), and some some utility code for providing a common interface to new APIs we use (e.g. the WebRtc adaptor).
2424

25-
2625
## How to use logging
2726

2827
* Please include "logging/logging.js" in the html file where freedom library is loaded, please make sure this loading happens before freedom code.
@@ -31,11 +30,11 @@ This currently consists of:
3130
```
3231
/// <reference path="../../../freedom/coreproviders/uproxylogging.d.ts" />
3332
```
34-
* In freedom module code, log instance can be instantiated this way (replace module_name with name of your own choice).
33+
* In freedom module code, log instance can be instantiated this way (replace module_name with name of your own choice).
3534
```
3635
var log :Freedom_UproxyLogging.Log = freedom['core.log']('module_name');
3736
```
38-
* Now following functions are available to record log messages.
37+
* Now following functions are available to record log messages.
3938
```
4039
log.debug('simple debug message with no further argument');
4140
log.info('It takes args, like from %1:%2 to %1:%3', ['localhost', 3000, 3002]);
@@ -44,3 +43,18 @@ This currently consists of:
4443
```
4544

4645
For a complete example, see: https://github.com/uProxy/uproxy-lib/tree/dev/src/freedom/samples/freedomchat-chromeapp
46+
47+
# Samples apps for manual testing
48+
49+
There are three sample apps for manual testing, with source code in:
50+
* `src/samples/copypaste-freedom-chat`
51+
* `src/samples/simple-freedom-chat`
52+
* `src/samples/simple-webrtc-chat`
53+
54+
These are run by starting a webserver and viewing the html, e.g.
55+
56+
````
57+
python -m SimpleHTTPServer
58+
```
59+
60+
Then goto the relevant main.html file in the relevant sample directory of: `http://localhost:8000/dist/samples/` in your web-browser. Samples should be self-explanatory. Follow instructions and type stuff in text boxes. :)

0 commit comments

Comments
 (0)