Sunday, March 8, 2009

How to start using GAE with Hello World example on windows XP

My Example of the application please look here
Now, let's get started...

  1. Register in http://appengine.google.com/ (follow the step, including activation)
  2. Download and run python 2.5.4 from http://www.python.org/download/releases/2.5.4/
  3. Download and run google SDK from http://code.google.com/appengine/downloads.html
  4. Create a new folder named helloworld in Google App Engine
  5. Create a helloworld.py file, with the code:
    print 'Content-Type: text/plain'
    print ''
    print 'hello, world'

  6. Create a app.yaml file with the code:

    application: helloworld
    version: 1
    runtime: python
    api_version: 1

    handlers:
    - url: /.*
    script: helloworld.py

  7. Open command prompt, go to google_appengine/dev_appserver.py helloworld/
  8. Run http://localhost:8080/ on the web browser
  9. To close the command prompt, press Ctrl-c or just close it
  10. Go to http://appengine.google.com/ again, and click on create an application button (Remember your application identifier name)
  11. Edit the app.yaml file, and change the value of application: to your application identifier name (originally helloworld)
  12. To upload, run the command google_appengine/appcfg.py update helloworld/ in command prompt
  13. To check, go to http://application identifier name.appspot.com
  14. To learn more. go to http://code.google.com/appengine/docs/python/gettingstarted/helloworld.html

1 comment:

  1. I copied everything precisely but I received this error:

    H:\Program Files\Google\google_appengine>dev_appserver.py helloworld/
    ERROR:root:Application configuration file missing an 'api_version' value:
    helloworld/app.yaml


    Any ideas?

    ReplyDelete