当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

gae-init

授权协议 MIT License
开发语言 Python
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 章哲茂
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

gae-init

gae-init is the easiest boilerplate to kick start new applications on Google App Engine using Python, Flask, RESTful, Bootstrap and tons of other cool features.

Read the documentation, where you can find a complete feature list, a detailed tutorial, the how to section and more..

The latest version is always accessible from https://gae-init.appspot.com

Requirements

Make sure you have all of the above or refer to the docs on how to install the requirements.

Initializing the project

cd /path/to/project-name
yarn

To install Gulp as a global package:

yarn global add gulp-cli

Running the Development Environment

cd /path/to/project-name
gulp

To test it visit http://localhost:3000 in your browser.


For a complete list of commands:

gulp help

Local testing

If you wish to run an automated test script, there is an additional dependency which can be installed with:

pip install -r test-requirements.txt

A simple test script framework, following the approach from the Google App Engine docs, can be run:

python main/runner.py --test-path tests ${HOME}/google-cloud-sdk/

This simply tests that the site can start up; that the index page exists (and returns an http response code of 200), and that a non-existent page returns an http response code of 404.

The test framework is easily extensible.

Deploying on Google App Engine

gulp deploy
gulp deploy --project=foo
gulp deploy --project=foo --version=bar
gulp deploy --project=foo --version=bar --no-promote

Resetting the project

If something goes wrong you can always do:

gulp reset
yarn
gulp

Tech Stack

  •      servlet是一种服务端的java应用程序,具有独立于平台和现役的特性,可以动态生成web页面,它担当客户请求与服务器响应的中间层。  原理:servlet由web服务器进行加载,该web服务器必须包含支持servlet的java虚拟机。       servlet 的工作流程。        1,客户端发送请求到服务器。        2,服务器启动并调用servlet,servle

  • 考虑到GAE可以一定条件下免费发布app,再加上之前有潜在客户需要用到GAE。 遂决定了解一番。 以比较熟悉的django作为切入点,   1. 首先安装 GAE-launcher,似乎没有太大问题 2. 用其生成一个app(非django项目,比较大白菜的架构) 3. 用其桌面版deploy,失败,貌似无法打开谷歌的网站。拜GFW所赐。   ok,试试通过命令行设置代理绕过, set HTTP_

  • 对于我的gae python项目,我想导入一个名为“ vobject”的外部库.将其导入到我的.py文件中的正确方法是什么? 该项目的自述文件指出,要安装它,您需要运行 python setup.py install 另外,vobject需要’dateutil’软件包. 由于这将在GAE上运行,因此我认为我应该将两个库都复制到我的项目中,而不是运行安装脚本以在我的代码中使用它. 但是我遇到了很多导

  • 最近因为要重写之前发布在GAE上的一个博客,又回顾了一下python,同时,因为用的flask,gae等等,一道写一些小总结,供日后查阅。 1, slugify 其实这个问题可以不考虑,只要你愿意用中文做url的话(seo也挺友好哦)。我最终选择了如下方案,注意,需要pip install unidecode: from unidecode import unidecode _punct_re

  • 我使用flaskalchemy,针对云SQL构建一个GAE Flask应用程序,并在构建应用程序时运行dev_appserver来测试它。在 但是,如果我将SQLALCHEMY_DATABASE_URI设置为mysql+gaerdbms:///appname?instance=instanceidURL,那么在尝试调用db.create_all()时会得到以下回溯:Traceback (most

  • 我正在使用Flask-Alchemy,针对Cloud SQL构建GAE Flask应用程序,并在构建应用程序时运行dev_appserver来测试应用程序。 但是,如果将SQLALCHEMY_DATABASE_URI设置为mysql gaerdbms:/// appname?instance = instanceid URL,则在尝试调用db.create_all()时,我会收到以下回溯: Tra

 相关资料
  • GAE-BBS 是一个运行在 Google App Engine (GAE) 上简单实用的论坛程序,你可以使用这个程序更简单的在GAE上建立一个自己的小论坛。 首先看GAE-BBS的示例 http://gae-bbs.appspot.com/ 如果你打不开可尝试 http://gaebbs.xibu.biz/ 下载 GAE-BBS程序 打开 http://code.google.com/p/gae

  • GAE TestBed 是一个用来简化应用程序在 Google App Engine 平台上测试的一些测试用例。 例如下面是一个用来测试邮件发送的用例: import unittest from gaetestbed import MailTestCase class MyTestCase(MailTestCase, unittest.TestCase):     def test_email_s

  • Google App Engine Boilerplate Legacy ============================== This Project was Sponsored by PyCharm NOTE: This Project is Legacy and uses the first technology used by Google App Engine, like web

  • 谈到架设部落格,很多人会马上想到WordPress。 WordPress是开源的同时,功能也随借版本更新而愈来愈多。 但却不是每一个人都希望在WordPress下架设部落格,这时便可使用PyPress For GAE。 PyPress For GAE是Python制的开源软体,以WordPress为蓝本而开发。 基本上只要可让Python执行的环境便可使用,特点是可在Google App Engi

  • gae-django-cms只是一个较简单的文章发布系统,通用性较强,使用这样程序的人大多是想收集一些自己喜欢的文章、个人学习过程所看的资料。 gae-django-cms V2.0不基于早期版本,早期版本是刚学习GAE时的产物,V2.0是发现一些局限性后重新设计的产物,大大提高了性能,同时也让使用者更自由的扩展自己的网站。V2.0比早期版本好的地方,效率提高很多;对放置google Adsens

  • 问题内容: Java DeferredTask的文档让我有些困惑。我在这里阅读了Python文档:http : //code.google.com/appengine/articles/deferred.html,但是我不清楚我将如何使用Java版本。 您能否提供可以启动DeferredTask以便使用DatastoreService进行简单写入的示例代码? 问题答案: 要使用deferred,首