项目作者: faisalraja

项目描述 :
I use this to create the basic app engine skeleton project for quick prototyping.
高级语言: Python
项目地址: git://github.com/faisalraja/app-engine-starter.git
创建时间: 2013-06-14T18:55:19Z
项目社区:https://github.com/faisalraja/app-engine-starter

开源协议:

下载


app-engine-starter

I use this to create the basic app engine skeleton project for quick prototyping.
Most of the setup can also be used for final production app, your files should be organized
if you follow it’s core setup.

Summary of things::

  1. lib/ - will hold your custom libraries, thirdparty libraries usually just go on root folder
  2. models/ - all your endpoint messages and datastore models here
  3. services/ - web services like cloud endpoints or your custom jsonrpc services
  4. mappers/ - model long tasks goes here for scripting or any task like actions
  5. static/ - js/css/images and all other static files (templates for js html)
  6. src/ - frontend code goes here including js and css
  7. templates/ - jinja2 templates goes here
  8. web/ - webpage handlers
  9. tests/ - unit testing tests goes here
  10. config.py - any configurable things on your project to easily edit later when you adjust things
  11. routes.py - all your routing needs for your url mapping to webpage handlers

Note that this is just a guideline, following it will just make life things easier when your app grows to hundreds of files

Install Requirements

  1. # If you are using Homebrew in OSX
  2. rm -rf ext_lib/* && echo -e "[install]\nprefix=" > ~/.pydistutils.cfg && pip install -t ext_lib -r requirements.txt && echo "" > ~/.pydistutils.cfg
  3. # Regular python command
  4. pip install -t ext_lib -r requirements.txt
  5. # Frontend Dependencies and Watcher command
  6. cd src
  7. npm install
  8. gulp watch

Demo: http://starter.altlimit-test.appspot.com/