Commits

lparkinson  committed e0fe248

Adding TODO comment to input App Engine project, better instructions.

  • Participants
  • Parent commits 4f5aac8

Comments (0)

Files changed (2)

File bigquery-appengine-sample/instructions.html

 cd ../../bigquery-appengine-sample
 mvn clean package</code></pre>
 
-<h3>Setup Project in Eclipse 3.7</h3>
+<h3>Settings</h3>
+<ul>
+  <li>Add the client ID and client secret of your project to <code>shared/shared-sample-appengine/src/main/resources/client_secrets.json</code>.  You can find your client id and secret on your <a href="https://code.google.com/apis/console">API console</a> for your Bigquery project under API Access</li>
+  <li>Run <code>mvn source:jar install</code> in <code>shared/shared-sample-appengine/</code></li>
+  <li>Add your Bigquery project ID as a system property to <code>bigquery-appengine-sample/src/main/webapp/WEB-INF/appengine-web.xml</code>.  If deploying to App Engine, also add your App Engine application ID at the top of the file.</li>
+  <li>Run <code>mvn clean package</code> in <code>bigquery-appengine-sample/</code></li>
+</ul>
+
+<h3>Setup project in Eclipse 3.7</h3>
 
 <p><b>Prerequisites:</b> install <a href="http://www.eclipse.org/downloads/">Eclipse</a>,
 <a href="http://code.google.com/eclipse/">Google Plugin for Eclipse</a>, and the
     <li>Click "Finish"</li>
   </ul>
   </li>
-  <li>Settings
-  <ul>
-    <li>Add your Bigquery project ID as a system property to <code>bigquery-appengine-sample/src/main/webapp/WEB-INF/appengine-web.xml</code></li>
-    <li>Add the client ID and client secret of your project to <code>shared/shared-sample-appengine/src/main/resources/client_secrets.json</code>.  You can find your client id and secret on your <a href="https://code.google.com/apis/console">API console</a> for your Bigquery project</li>
-    <li>Run <code>mvn source:jar install</code> in <code>shared/shared-sample-appengine/</code></li>
-    <li>Run <code>mvn clean package</code> in <code>bigquery-appengine-sample/</code></li>
-  </ul>
-  </li>
   <li>Run
   <ul>
     <li>Right-click on project bigquery-appengine-sample</li>
   </li>
 </ul>
 
+<h3>FAQ</h3>
+<ul>
+  <li>I keep getting redirected to /denied!  What do I do?<br/>Make sure your client secret/ID are correctly set and that you re-installed samples/shared-sample-appengine.</li>
+  <li>I get a 404 when I run my query.  What could be wrong?<br/>Make sure you've added your </li>
+</ul>
+
 </body>
 </html>

File bigquery-appengine-sample/src/main/webapp/WEB-INF/appengine-web.xml

 <?xml version="1.0" encoding="utf-8"?>
 <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
-  <application>google.com:bigquerysample</application>
+  <!-- TODO Add your App Engine application ID here. -->
+  <application></application>
   <version>1</version>
 
   <!--
   <system-properties>
     <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
     <!-- TODO Add your project ID here. -->
-    <property name="com.google.api.client.sample.bigquery.appengine.dashboard.projectId" value="google.com:bigquery-sample"/>
+    <property name="com.google.api.client.sample.bigquery.appengine.dashboard.projectId" value=""/>
   </system-properties>
 
 </appengine-web-app>