/README

http://thoughtsite.googlecode.com/ · #! · 85 lines · 65 code · 20 blank · 0 comment · 0 complexity · 1a538f90d8ecebd2d7350b8e3a8868b4 MD5 · raw file

  1. 1. Introduction
  2. 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.
  3. 2. Installation
  4. Please follow the instructions below to install ThoughtSite.
  5. 2.1 Pre-requisites:
  6. 1) Install JRE 1.6.0_02
  7. 2) Checkout the latest version of the code from the repository into your favorite IDE, as described on
  8. http://code.google.com/p/thoughtsite/source/checkout
  9. 3) Update application name inside ${Project_home}/src/main/webapp/WEB-INF/appengine-web.xml.
  10. For Example:
  11. <?xml version="1.0" encoding="utf-8"?>
  12. <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  13. <application>
  14. <<Application Id>>
  15. </application>
  16. .
  17. .
  18. .
  19. </appengine-web-app>
  20. 2.2 Configuration changes:
  21. Following are the web-domain specific changes, needed for enabling the OpenId and Google OAuth for web domains.
  22. 1) Use link https://www.google.com/accounts/ManageDomains to register your web domain and generate <meta> tag having verification key as its content.
  23. For Example:
  24. <meta name="google-site-verification" content="xzcVSmAgkQvOm_ImutHAxNTGCKkrVVFNUsiDf3hISFQ" />
  25. 2) Copy <meta> tag and paste into ${Project_home}/war/WEB-INF/decorators/admin-layout.jsp and
  26. ${Project_home}/war/WEB-INF/decorators/layout.jsp , and upload ThoughtSite project to GAE using
  27. GAE plug-in from eclipse.
  28. Example:
  29. <html>
  30. <head>
  31. <meta name="google-site-verification" content="Ef3KCtSi-DqVSVq-Z3bf_ZaLrLuSw6cWrdbNwAcAGCo" />
  32. .
  33. .
  34. .
  35. </head>
  36. <body>
  37. .
  38. .
  39. .
  40. </body>
  41. </html>
  42. 3) Generate certificate file for authorization. Please refer
  43. http://code.google.com/apis/gdata/docs/auth/oauth.html#GeneratingKeyCert for certificate generation.
  44. 4) Verify your site from https://www.google.com/accounts/ManageDomains using web domain specific link
  45. under 'Manage registration' section. On successful verification pass certificate generated in step 3.
  46. On successful verification, server would return following security information for web-domain.
  47. 1.)google.consumerKey
  48. 2.)google.consumerSecret
  49. 3.)google.oauthTestEndpoint
  50. 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.
  51. a) google.consumerKey
  52. b) google.consumerSecret
  53. c) google.oauthTestEndpoint
  54. Please refer the link http://code.google.com/apis/gdata/docs/auth/oauth.html#2LeggedOAuth.
  55. 2.3 Upload Application and Populate data:
  56. 1.) Upload the ThoughtSite application.
  57. 2.) Upload Data:
  58. ThoughtSite contains DataUploadController, a seperate controller to upload the sample data eg
  59. Categories,Bad Words and appliaction admin.
  60. a) Upload Categories
  61. Use URL http://<<domain-name>>.com/categories/upload to load categories.
  62. a) Upload Bad words
  63. Use URL http://<<domain-name>>.com/upload/badWords to load Bad words.
  64. c) Add Admin:
  65. Use URL http://<<domain-name>>.com/addAdmin to load admin.