sqram / gae-bootstrap

App Engine skelleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart

  1. run gcloud init
  2. open terminal to project directory and run npm start
  3. open another terminal to same dir and run gulp watch
  4. in package.json's deploy command, edit {projectname}
  5. don't forget to npm i
  6. go to localhost:8080/ to see your app
  7. go to localhost:8000/ to see ndb interface

note: updating files in template/ will not auto reload, only files being watched by gulp watch will

If building SPA

  • delete templates
  • create index.html in src/

change:

  • main.py in BaseHandler, the session name

  • base.html header info (title, etc)

  • package.json project name, git repo, etc


Killing proc on port:

sudo fuser -n tcp sudo kill -9


ACL

https://cloud.google.com/storage/docs/access-control/create-manage-lists#defaultobjects https://cloud.google.com/storage/docs/gsutil/commands/defacl
gsutil defacl ch -u AllUsers:R gs://example-bucket
will change future uploads to be publicly visible


Libraries

Libraries supported by GAE must be listed in app.yaml
Other libraries must be installed to 'lib' folder with
pip2.7 install --target=lib passlib

About

App Engine skelleton


Languages

Language:JavaScript 38.7%Language:Python 34.7%Language:CSS 17.1%Language:HTML 9.6%