This is a Q&A app in Java. The web interface is adaptive - try it from mobile! Examples: http://jquery.pupunzi.com/
If you want a customized version of this Q&A, both for design and behavior, just contact me (Pietro Polsinelli) on Twitter: http://twitter.com/ppolsinelli
#Setup This is a standard Java web app running on Tomcat6+, JDK6+ and MySQL. Actually if you know your way around JDBC drivers, this is a platform on Hibernate, so the Q&A runs on almost any relational database (PostgreSQL, Oracle, SQL Server, ...).
Download the web app (just the HTML) and move qa.properties from support to commons/settings, then:
-
Publish the webapp in Tomcat
-
Create an empty database
-
Setup database access data in WEB-INF/config.properties: url=jdbc:mysql://YOUR_DB_SERVER/YOUR_EMPTY_DATABASE?useUnicode=true&characterEncoding=UTF-8 user=root password=whatever
-
Rename the file admin.rename in commons/administration to admin.jsp
-
Start Tomcat
-
Go via browser to the url http://yourserver/commons/administration/admin.jsp
-
Put as password the adminPassword as from WEB-INF/config.properties, and select "update db schema" -> database will be created
-
Restart Tomcat
At setup end, the default operator is "administrator" with empty password. Create at least one question with label "meta" to enable the "meta" section. When you enter as administrator,
In production, change config.properties with:
- development=no
- logOnConsole=no
- logOnFile=yes And adjust settings in in commons/settings/qa.properties, in particular set PUBLIC_SERVER_NAME to your server domain.
Set error levels to ERROR.
#Customize labels:
Enter the web app ad administrator, go to settings -> label section. If you are starting from "Pupunzi"'s model, search for "Pupunzi" in labels and replace with your links and texts.
Here are some labels that you should change:
#LEFT COLUMN BOXES
QA_BOX1_TITLE QA_BOX1_BODYTEXT
QA_BOX2_TITLE QA_BOX2_BODYTEXT
QA_PROMO_BOX
QA_REFERENCE QA_REF_SITE
#Google tracking code QA_GOOGLE_CODE
String mailingServerDomain = I18n.g("QA_MAILING_DOMAIN"); String apikey = I18n.g("QA_MAILING_APIKEY"); String listId = I18n.g("QA_MAILING_LISTID");
- META: you need the first tag created to be "meta" tag.
#Enabling recaptcha: ALWAYS,NEVER,MAYBE RECAPTCHA_QUESTION=MAYBE
#Enabling tag creation: yes, no QUESTION_GRACE=no
#Tags usage cutoff QUESTION_TAG_CUTOFF=1