Skip to content
forked from mlromramse/JavaQA

A free Java Q&A inspired by StackOverflow

Notifications You must be signed in to change notification settings

gustianom/JavaQA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaQA

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:

  1. Publish the webapp in Tomcat

  2. Create an empty database

  3. 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

  4. Rename the file admin.rename in commons/administration to admin.jsp

  5. Start Tomcat

  6. Go via browser to the url http://yourserver/commons/administration/admin.jsp

  7. Put as password the adminPassword as from WEB-INF/config.properties, and select "update db schema" -> database will be created

  8. 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:

  1. development=no
  2. logOnConsole=no
  3. 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

About

A free Java Q&A inspired by StackOverflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 64.3%
  • JavaScript 28.1%
  • HTML 5.5%
  • CSS 2.1%