public
Description: The reference implementation of the OpenResty server in Perl and Haskell
Homepage: http://search.cpan.org/dist/OpenResty
Clone URL: git://github.com/agentzh/openresty.git
openresty / demo / Blog2
name age message
..
file Makefile Loading commit data...
file README
file TODO
directory css/
directory script/
demo/Blog2/README
This is the source for the blog site http://blog.agentzh.org .

How to setup the site:

* First of all, ask agentzh for an OpenAPI account by writing to agentzh@yahoo.cn

* cd into this directory and enter the following commands:

    $ sudo cpan Jemplate Date::Manip WWW::OpenResty
    $ script/init.pl -u your_account -p your_password
    $ vim js/blog.js  # change "agentzh" to your account name
    $ vim Makefile    # change blog_name and blog_desc to your own
    $ make
    $ firefox out/index.html &

../../bin/export-model.pl --user eeee --password $password --model Comment --server api.eeeeworks.org --out Comment.json

../../bin/export-model.pl --user eeee --password $password --model Post --server api.eeeeworks.org --out Post.json
script/init.pl -u eeee -p $password -s api.eeeeworks.org
../../bin/import-model.pl --reset --no-id --user eeee --password $password --model Post --server api.eeeeworks.org 
Post.json
../../bin/import-model.pl --reset --no-id --user eeee --password $password --model Comment --server api.eeeeworks.org 
Comment.json