OLD | NEW |
1 Angular.dart's Todo Demo | 1 Angular.dart's Todo Demo |
2 ======================== | 2 ======================== |
3 | 3 |
4 This demo is the most complete demo in the repository and a great | 4 This demo is the most complete demo in the repository and a great |
5 starting point for quickly understanding Angular.dart | 5 starting point for quickly understanding Angular.dart |
6 | 6 |
7 Getting up and running | 7 Getting up and running |
8 ---------------------- | 8 ---------------------- |
9 | 9 |
10 To run this demo, first clone the entire Angular.dart repository. | 10 To run this demo, first clone the entire Angular.dart repository. |
11 | 11 |
12 Then, run ``pub serve`` in this directory: | 12 Then, run `pub serve` in this directory: |
13 | 13 |
14 ``` | 14 ``` |
15 $ cd demo/todo; pub serve | 15 $ cd demo |
| 16 $ pub serve |
16 ``` | 17 ``` |
17 | 18 |
18 Finally, open http://localhost:8080/index.html. | 19 Finally, open `http://localhost:8080/todo.html.` |
19 | 20 |
20 The server is optional | 21 The server is optional |
21 ---------------------- | 22 ---------------------- |
22 | 23 |
23 There is a simple Node.js server in this directory, but you do | 24 There is a simple Node.js server in this directory, but you do |
24 not need to run it. It is here to demonstrate the HTTP record / | 25 not need to run it. It is here to demonstrate the HTTP record / |
25 playback feature, snapshotting and dart2js. | 26 playback feature, snapshotting and dart2js. |
26 | 27 |
27 ``` | 28 ``` |
28 $ cd demo/todo; node webserver.js | 29 $ cd example |
| 30 $ node webserver.js |
29 Web server is listening on port 3000 | 31 Web server is listening on port 3000 |
30 ``` | 32 ``` |
31 | 33 |
32 To use dart2js, open http://localhost:3000/index.html in a non-Dartium web | 34 To use dart2js, open http://localhost:3000/todo.html in a non-Dartium web |
33 browser. | 35 browser. |
34 | 36 |
35 To use snapshotting, open http://localhost:3000/snapshot/index.html, which | 37 To use snapshotting, open http://localhost:3000/snapshot/todo.html, which |
36 will serve a zip file with all the files used in the application. | 38 will serve a zip file with all the files used in the application. |
37 | 39 |
38 To use HTTP record / playback, first open http://localhost:3000/index.html?recor
d. | 40 To use HTTP record / playback, first open http://localhost:3000/todo.html?record
. |
39 Then, without restarting the server, open http://localhost:3000/index.html?playb
ack. | 41 Then, without restarting the server, open http://localhost:3000/todo.html?playba
ck. |
40 | 42 |
41 For more awesomeness, use HTTP playback together with snapshotting to isolate yo
ur | 43 For more awesomeness, use HTTP playback together with snapshotting to isolate yo
ur |
42 Dart application from the server. http://localhost:3000/snapshot/index.html?play
back | 44 Dart application from the server. http://localhost:3000/snapshot/todo.html?playb
ack |
OLD | NEW |