Sunday, 1 June 2014

Getting started with google app engine and bottle.py



Always late to to the party - I decided to give google app engine a go using my favorite language python.

Anyway here is how I got started.

  1. Go to https://console.developers.google.com/start/appengine
  2. Should prompt you for a google username password
  3. Click 'Try it now'
  4. Choose a project name - choose python, bottle, click 'Download your code'
  5. Go to https://console.developers.google.com/
  6. Create a new project and choose a useful project id - PROJECTID
  7. open a terminal and follow the prompts to install : 'curl sdk.cloud.google.com | bash'
  8. restart terminal or just run '. .bashrc' to get the changes 
  9. sign into google cloud using: 'gcloud auth login'
  10. run 'gcloud components update app' to install additional tools.
  11. extract the preview code into a directory called PROJECTID
  12. run 'gcloud config set project PROJECTID'
  13. run 'gcloud preview app run PROJECTID' to run a local copy of the instance
  14. run 'gcloud preview app deploy PROJECTID' to push it onto the server.
  15. you should be able to access the deployment under http://PROJECTID.appspot.com

Next step write some code that uses the ndb to store things.






No comments:

Post a Comment