The instructions provided here assume that you have gone through the Getting Started flow in the Google Cloud console .
These requirements apply to the default sample, which uses App Engine Datastore. If you are changing this to use Google Cloud SQL instead, see also the additional setup and requirements described in Setting Up for Google Cloud SQL below.
Requirements
Before you can build and run the sample, you need to do the following:
- If you have not yet downloaded the Photofeed sample, download it now.
-
Set
up a Google Cloud Storage bucket
to store photos, making sure to grant
bucket access permissions for the App Engine application.
Note: There may be a small monthly fee required for using Google Cloud Storage even for test purposes.
- Download and install the App Engine SDK . (Optionally, if you use Eclipse, you need to install the Google Plugin for Eclipse as well.)
-
If you don't have
Apache Ant
,
download and install it. You need it to build the sample, even if you
intend to use Eclipse.
If you are unfamiliar with Ant, you can find information about using it with App Engine in the App Engine Java documentation .
Setting Up for Google Cloud SQL
If you use Google Cloud SQL for photo storage, you need to
create a Google Cloud SQL
instance
and then create a database for that instance. Finally, use
the script provided in
war/WEB-INF/photo_sharing_demo_db.sql
to
create the required tables in the database. (Allow App Engine application
access to the database instance.)