Upload
chen-yi-huan
View
282
Download
2
Embed Size (px)
DESCRIPTION
Create a project using php to learn that how to use the basic settings in GAE.
Citation preview
10 Min to Learn GAE for PHPhttp://goo.gl/rDRSH6
WHO AM I
Ethan - 陳禕寰
Front-End Engineer
Introduction
● Installing the SDK● Build an App Engine application using PHP
○ Hello GAE Example○ Handling Forms○ Using Static File ( CSS and Images )
● Uploading your application○ Regist、Create、Upload
Installing the SDK
● Linux
● Mac OS X
● Windows
Installing the SDK - Windows
1. Python 2.72. PHP SDK for App Engine3. MySQL(Community Server for Local Development)
Installing the SDK - Mac OS X
1. Check python version : needs 2.7 /usr/bin/env python -v if not 2.7 > https://www.python.org/downloads/ 2. Installing MySQL
Introduction
● Installing the SDK● Build an App Engine application using PHP
○ Hello GAE Example○ Handling Forms○ Using Static File ( CSS and Images )
● Uploading your application○ Regist、Create、Upload
Hello GAE!
1. Creating a simple script● hello.php
2. Creating the configuration file● app.yaml
3. Test the application!● Do it!
Hello GAE Example!
Introduction
● Installing the SDK● Build an App Engine application using PHP
○ Hello GAE Example○ Handling Forms○ Using Static File ( CSS and Images )
● Uploading your application○ Regist、Create、Upload
Handling FormsEdit hello.php and try submitting messages
Introduction
● Installing the SDK● Build an App Engine application using PHP
○ Hello GAE Example○ Handling Forms○ Using Static File ( CSS and Images )
● Uploading your application○ Regist、Create、Upload
Using Static Files - CSS or Images
1. Edit app.yaml and replace its contents.2. Create the directory stylesheets, and create
a new file named main.css.
Introduction
● Installing the SDK● Build an App Engine application using PHP
○ Hello GAE Example○ Handling Forms○ Using Static File ( CSS and Images )
● Uploading your application○ Regist、Create、Upload
Registering an app on GAE
Go to https://appengine.google.com/ or thisand log in with your Google account,then create application.
Create Project
Uploading the Application
1. Uploading via command line○ appcfg.py update helloworld/
2. Use the App Engine Launcher
3. Using Git
http://your_app_id.appspot.com
Demo code
http://goo.gl/ETs6c9