-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
85 lines (65 loc) · 3.46 KB
/
README
File metadata and controls
85 lines (65 loc) · 3.46 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
1. Introduction
ThoughtSite is envisioned as a social network where potential developers/entrepreneurs can find inspiration to build new applications and businesses. The website is a medium for people to propose and exchange new and interesting business ideas as well as a social network for registered users to search, comment and collaborate on ideas.
2. Installation
Please follow the instructions below to install ThoughtSite.
2.1 Pre-requisites:
1) Install JRE 1.6.0_02
2) Checkout the latest version of the code from the repository into your favorite IDE, as described on
http://code.google.com/p/thoughtsite/source/checkout
3) Update application name inside ${Project_home}/src/main/webapp/WEB-INF/appengine-web.xml.
For Example:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>
<<Application Id>>
</application>
.
.
.
</appengine-web-app>
2.2 Configuration changes:
Following are the web-domain specific changes, needed for enabling the OpenId and Google OAuth for web domains.
1) Use link https://www.google.com/accounts/ManageDomains to register your web domain and generate <meta> tag having verification key as its content.
For Example:
<meta name="google-site-verification" content="xzcVSmAgkQvOm_ImutHAxNTGCKkrVVFNUsiDf3hISFQ" />
2) Copy <meta> tag and paste into ${Project_home}/war/WEB-INF/decorators/admin-layout.jsp and
${Project_home}/war/WEB-INF/decorators/layout.jsp , and upload ThoughtSite project to GAE using
GAE plug-in from eclipse.
Example:
<html>
<head>
<meta name="google-site-verification" content="Ef3KCtSi-DqVSVq-Z3bf_ZaLrLuSw6cWrdbNwAcAGCo" />
.
.
.
</head>
<body>
.
.
.
</body>
</html>
3) Generate certificate file for authorization. Please refer
http://code.google.com/apis/gdata/docs/auth/oauth.html#GeneratingKeyCert for certificate generation.
4) Verify your site from https://www.google.com/accounts/ManageDomains using web domain specific link
under 'Manage registration' section. On successful verification pass certificate generated in step 3.
On successful verification, server would return following security information for web-domain.
1.)google.consumerKey
2.)google.consumerSecret
3.)google.oauthTestEndpoint
5) Add google.consumerKey, google.consumerSecret and google.oauthTestEndpoint as properties and their values received in step 4 into ${Project_home}/conf/dev/provider.properties for openId and OAuth based authentification and authorization.
a) google.consumerKey
b) google.consumerSecret
c) google.oauthTestEndpoint
Please refer the link http://code.google.com/apis/gdata/docs/auth/oauth.html#2LeggedOAuth.
2.3 Upload Application and Populate data:
1.) Upload the ThoughtSite application.
2.) Upload Data:
ThoughtSite contains DataUploadController, a seperate controller to upload the sample data eg
Categories,Bad Words and appliaction admin.
a) Upload Categories
Use URL http://<<domain-name>>.com/categories/upload to load categories.
a) Upload Bad words
Use URL http://<<domain-name>>.com/upload/badWords to load Bad words.
c) Add Admin:
Use URL http://<<domain-name>>.com/addAdmin to load admin.