Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: samples/swarm/README

Issue 10735076: Update swarm to run from the Dart Editor with demo data (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update README Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 for details. All rights reserved. Use of this source code is governed by a 2 for details. All rights reserved. Use of this source code is governed by a
3 BSD-style license that can be found in the LICENSE file. 3 BSD-style license that can be found in the LICENSE file.
4 4
5 A sample news reader application. 5 A sample news reader application.
6 6
7 Building and running: 7 Running in the Editor with demo data (demo only, no feeds):
8 8
9 1. ensure the dartc compiler is built: 9 1. open the Dart Editor
10 $ cd dart/
11 $ ./tools/build.py --arch=ia32
12 10
13 2. run the update.py script: 11 2. from the menu, click File / Open Folder and load this directory
14 $ cd samples/swarm/
15 $ python update.py
16 12
17 3. To run on App Engine, install the App Engine SDK for your platform, then 13 3. click the green run button
14
15 4. alternatively, to run as javascript:
16 - compile (under the Tools / Generate JavaScript menu option)
17 - load the same url shown in Dartium in step 3 in any other browser
18
19 Running in Dartium from the file system (demo only, no feeds):
20
21 1. run the Dartium Chrome binary from the command line with the following flag: --allow-file-access-from-files
22
23 2. navigate to the swarm.html file in this directory
24
25 Running from App Engine (TODO: these are stale instructions):
26
27 1. To run on App Engine, install the App Engine SDK for your platform, then
18 $ easy_install --upgrade google-api-python-client per http://code.google.com/p /google-api-python-client/wiki/Installation 28 $ easy_install --upgrade google-api-python-client per http://code.google.com/p /google-api-python-client/wiki/Installation
19 $ cd samples/swarm/appengine 29 $ cd samples/swarm/appengine
20 $ enable-app-engine-project . per http://code.google.com/p/google-api-python-c lient/wiki/GoogleAppEngine 30 $ enable-app-engine-project . per http://code.google.com/p/google-api-python-c lient/wiki/GoogleAppEngine
21 Start the App Engine dev server and browse to /swarm-js.html 31 Start the App Engine dev server and browse to /swarm-js.html
22
23 4. To run without App Engine (demo only, no feeds), open the generated file in a browser:
24 $ google-chrome ../../outcode/swarm-js.html
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698