Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f1b94b

Browse files
committed
Update demo application.
* Add instructions for running. * Remove symlink, which causes issues with our syncing client. * Remove one-off tests which are not really good demos.
1 parent 921219c commit 9f1b94b

File tree

6 files changed

+23
-185
lines changed

6 files changed

+23
-185
lines changed

demo/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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>

demo/app.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
# Demo app.
2-
application: ndb-experiment
3-
version: 1
42
runtime: python27
53
api_version: 1
64
threadsafe: True
75

86
handlers:
9-
10-
- url: /django_middleware
11-
script: django_middleware_test.app
12-
137
- url: /fibo.*
148
script: fibo.app
159

16-
- url: /intest.*
17-
script: intest.app
18-
1910
- url: /hello.*
2011
script: hello.app
2112

22-
##- url: /test.*
23-
## script: test.py
24-
2513
- url: /home
2614
script: main.app
2715

demo/django_middleware_test.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

demo/intest.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

demo/ndb

Lines changed: 0 additions & 1 deletion
This file was deleted.

demo/test.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)