forked from google/google-api-java-client-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstructions.html
More file actions
executable file
·68 lines (57 loc) · 2.85 KB
/
Copy pathinstructions.html
File metadata and controls
executable file
·68 lines (57 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html>
<title>Google Bigquery App Engine Dashboard Sample</title>
<body>
<h2>Instructions for the Google Bigquery App Engine Dashboard Sample</h2>
<h3>Browse Source Code</h3>
<ul>
<li><a
href="http://code.google.com/p/google-api-java-client/source/browse/bigquery-appengine-sample/?repo=samples">bigquery-appengine-sample</a></li>
</ul>
<h3>Checkout Instructions</h3>
<p><b>Prerequisites:</b> install <a href="http://java.com">Java 6</a>, <a
href="http://code.google.com/appengine/downloads.html">Google App Engine
1.4.0</a>, <a href="http://mercurial.selenic.com/">Mercurial</a>, and <a
href="http://maven.apache.org/download.html">Maven</a>. You may need
to set your <code>JAVA_HOME</code>.</p>
<pre><code>cd <i>[someDirectory]</i>
hg clone https://samples.google-api-java-client.googlecode.com/hg/ google-api-java-client-samples
cd google-api-java-client-samples/samples/shared-sample-appengine
mvn source:jar install
cd ../../bigquery-appengine-sample
mvn clean package</code></pre>
<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
<a href="http://javaforge.com/project/HGE">Mercurial plugin</a>.</p>
<ul>
<li>Import <code>bigquery-appengine-sample</code> project
<ul>
<li>File > Import...</li>
<li>Select "General > Existing Project into Workspace" and click
"Next"</li>
<li>Click "Browse" next to "Select root directory", find <code><i>[someDirectory]</i>/google-api-java-client-samples/bigquery-appengine-sample</code>
and click "Next"</li>
<li>Click "Finish"</li>
</ul>
</li>
<li>Run
<ul>
<li>Right-click on project bigquery-appengine-sample</li>
<li>Run As > Web Application</li>
</ul>
</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>