File tree Expand file tree Collapse file tree 6 files changed +23
-185
lines changed Expand file tree Collapse file tree 6 files changed +23
-185
lines changed Original file line number Diff line number Diff line change
1
+ # ndb demo application
2
+
3
+ ## Overview
4
+
5
+ This demo shows various ways to use ndb. The application consists of serveral
6
+ different handlers.
7
+ * hello.py: a simple hello world application.
8
+ * guestbook.py: a simple guestbook application.
9
+ * dataviewer.py: a page that allows you to query for entities in your Datastore
10
+ using ndb GQL.
11
+ * main.py: home page and user handling including login/logout.
12
+ * fibo.py: calculate the fibonacci sequence, taking advantage of ndb tasklets.
13
+
14
+ ## Setup
15
+
16
+ 1 . Copy ndb (the entire folder) into the demo subdirectory.
17
+ 2 . Deploy the demo application using the command:
18
+
19
+ gcloud preview app deploy demo/app.yaml
20
+
21
+ This will deploy the app to your default project, which you can configure using gcloud:
22
+
23
+ gcloud config set project <project-id>
Original file line number Diff line number Diff line change 1
1
# Demo app.
2
- application : ndb-experiment
3
- version : 1
4
2
runtime : python27
5
3
api_version : 1
6
4
threadsafe : True
7
5
8
6
handlers :
9
-
10
- - url : /django_middleware
11
- script : django_middleware_test.app
12
-
13
7
- url : /fibo.*
14
8
script : fibo.app
15
9
16
- - url : /intest.*
17
- script : intest.app
18
-
19
10
- url : /hello.*
20
11
script : hello.app
21
12
22
- # #- url: /test.*
23
- # # script: test.py
24
-
25
13
- url : /home
26
14
script : main.app
27
15
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments