comparison ikweb/README @ 247:7747bbe5b68e

start to develope Information Exchange Center of Ikariam Game. (prototpye)
author "Hisn Yi, Chen <ossug.hychen@gmail.com>"
date Mon, 01 Dec 2008 00:27:22 +0800
parents
children
comparison
equal deleted inserted replaced
246:60c4b4b78a01 247:7747bbe5b68e
1 Definition
2
3 * GAE: Google App Engine
4 * GAEO: Google App Engine Oil ( Web Framwork )
5
6 Requirment Of Develope Env
7
8 * download eagle-eye and setup it. see more in eagel-eye README
9 * download GAE SDK and setup it.
10 * download GAEO Framwork and setup it. see more in GAEO document.
11
12 * add following in ~/.bashrc
13
14 export GAEO_HOME='~/codes/gaeo' # put your installation directory here.
15 export GAE_HOME='~/codes/google_appengine'
16 PATH=$PATH:$GAEO_HOME/bin:$GAE_HOME:~/bin/
17
18 Launch Web site
19
20 * using GAE dev_server.py to launch.
21 * browse http://localhost:8080 to see the index page.
22
23 Develope new version of models if chichchun has changed database schema.
24
25 if db schema has changed, the GAEO models in web site need to rebuild,
26 a model generator will get colum informations in all tables in ikariam.sqlite,
27 and makes new GAEO models, which has a required properties, you may want to
28 modify it later if some properties is wrong.
29
30 the model relation will not generate in this action, you have added it by hand.
31
32 [ WARRING ]
33 it will re-generate all models, the web site can not work until
34 you have done the work that re-design models.
35
36 $ ./rebuild_world
37
38 How many model are implemented already?
39
40 player, island, city, ally
41
42 How to kwnow What input fileds of the model in POST ?
43
44 use action "attrs", example: http://localhost:8080/player/attrs
45
46 How to display model information ?
47
48 use action "show", example: http://localhost:8080/player/show/1
49
50 p.s the last number 1 is the Ikariam Game ID of the model.
51
52 Hot to get the datas of the model in JSON formate?
53
54 use action "json", example: http//"localhost:8080/player/json/1"
55
56 p.s the last number 1 is the Ikariam Game ID of the model.
57